currently only works if you select manaphy or mew as battle partner. it currently only works for one turn- feel free to remix as long as credit is given- everything in here is how damage is actually calculated from Generation onwards, subject to future change. this may not ever be finished as this was just meant to be a plan for the actual thing on python.
to check all the maths behind it go to damage on bulbapedia