Damage Calculation

Damage calculation is the calculation used to determine the damage done by a Pokémon.
==Calculation==
Calculate the values:
#2 \times Level + 10 \over 250
#Attack \over Defense
Multiply the numbers above, then add 2. (Multiply first)
#Base \times STAB \times Type \times Critical \times Others \times rand(\in [0.85,1]
Where Level would be Attacking Pokémon's level.
Where Attack is Attack or Special ATK of Attacking Pokémon (depending on whether the move is Physical or Special)
Where Defense is Defense or Special DEF of Defending Pokémon.(same as above)
Where STAB is 1.5 if move is same type as user without Adaptability, 2 if move is same type as user with Adaptability, and 1 if otherwise.
Where Type is Type Effectiveness; either 4, 2, 1, 0.5, 0.25, or 0.
Where Critical is Critical hit= Critical Hit=2 Gen V and prior, =1.5 if Gen VI, else =1
Others is Other Conditions. Input them manually.
Example=
Imagine if a Turtwig at Lvl 100 had Sp Atk 200, Sp Def 200 and HP 400
It uses Leaf Storm(140 Base) against Piplup at Lvl 90 SP Atk 194,Sp Def 190 and HP 380
Formula is
2 x 100 + 10 over 250 = 0.84
B=200/190 = 20/19 (round down last)
Modifier = 130 x 1.5 x 2 x 1 x 0.85(Minimum Damage)=331.5
Modifier = 130 x 1.5 x 2 x 2 x 1 (Maximum Damage)=780
0.84*20/19*331.5=293 11/95 minimum
0.84*20/19*780
Which would be enough to wipe out Piplup.
Category:Game Mechanics