Damage: Difference between revisions

120 bytes added ,  7 April 2023
→‎Generation V onward: De-italicization of variable names in damage formula
(→‎Generation V onward: De-italicization of variable names in damage formula)
Line 106: Line 106:


===[[Generation V]] onward===
===[[Generation V]] onward===
:<math>Damage = \left(\frac{\left( \frac{2 \times Level}{5} + 2\right) \times Power \times A / D}{50} + 2\right) \times Targets \times PB \times Weather \times GlaiveRush \times Critical \times random \times STAB \times Type \times Burn \times other \times ZMove \times TeraShield</math>
:<math>\text{Damage} = \left(\frac{\left( \frac{2 \times \text{Level}}{5} + 2\right) \times \text{Power} \times\frac{A}{D}}{50} + 2\right) \times \text{Targets} \times \text{PB} \times \text{Weather} \times \text{GlaiveRush} \times \text{Critical} \times \text{random} \times \text{STAB} \times \text{Type} \times \text{Burn} \times \text{other} \times \text{ZMove} \times \text{TeraShield}</math>


where (and unless specified otherwise, all divisions and multiplications past the initial base damage calculation are subject to standard rounding, rounding down at 0.5, if necessary)
where (and unless specified otherwise, all divisions and multiplications past the initial base damage calculation are subject to standard rounding, rounding down at 0.5, if necessary)
Line 224: Line 224:
|1 + (819/4096 (~0.2) per successful consecutive use of the same move) if held by the attacker, but no more than 2
|1 + (819/4096 (~0.2) per successful consecutive use of the same move) if held by the attacker, but no more than 2
|}
|}
:If multiple effects influence the ''other'' value, their values stack multiplicatively, in the order listed above. This is done by starting at 4096, multiplying it by each number above in the order listed above, and whenever there is a decimal, standard rounding it and rounding up at 0.5. When the final value is obtained, it is divided by 4096, and this becomes ''other''. For example, if both {{a|Multiscale}} and a [[Chilan Berry]] take effect, ''other'' is <math>\frac{4096 * 0.5 * 0.5}{4096}</math> = 0.25.
:If multiple effects influence the ''other'' value, their values stack multiplicatively, in the order listed above. This is done by starting at 4096, multiplying it by each number above in the order listed above, and whenever there is a decimal, standard rounding it and rounding up at 0.5. When the final value is obtained, it is divided by 4096, and this becomes ''other''. For example, if both {{a|Multiscale}} and a [[Chilan Berry]] take effect, ''other'' is <math>\frac{4096 \times 0.5 \times 0.5}{4096}</math> = 0.25.
* ''ZMove'' is 0.25 if the move is a [[Z-Move]], [[Max Move]], or [[G-Max Move]] being used into a protection move ({{m|Protect}}, {{m|Detect}}, {{m|King's Shield}}, {{m|Spiky Shield}}, {{m|Mat Block}}, {{m|Baneful Bunker}}, or {{m|Obstruct}}, or potentially {{m|Wide Guard}} or {{w|Quick Guard}} if the move has multiple targets or is given priority, respectively; if the move triggers the "couldn't fully protect" message, the multiplier will be applied), and 1 otherwise.
* ''ZMove'' is 0.25 if the move is a [[Z-Move]], [[Max Move]], or [[G-Max Move]] being used into a protection move ({{m|Protect}}, {{m|Detect}}, {{m|King's Shield}}, {{m|Spiky Shield}}, {{m|Mat Block}}, {{m|Baneful Bunker}}, or {{m|Obstruct}}, or potentially {{m|Wide Guard}} or {{w|Quick Guard}} if the move has multiple targets or is given priority, respectively; if the move triggers the "couldn't fully protect" message, the multiplier will be applied), and 1 otherwise.
* ''TeraShield'' is applied in [[Tera Raid Battle]]s when the Raid boss's shield is active, and is 0.2 if the player's Pokémon is not [[Terastal phenomenon|Terastallized]], 0.35 if it is but the used move is not of its Tera Type, and 0.75 if it is and the used move is of its Tera Type. The result is subject to standard rounding, rounding up at 0.5.
* ''TeraShield'' is applied in [[Tera Raid Battle]]s when the Raid boss's shield is active, and is 0.2 if the player's Pokémon is not [[Terastal phenomenon|Terastallized]], 0.35 if it is but the used move is not of its Tera Type, and 0.75 if it is and the used move is of its Tera Type. The result is subject to standard rounding, rounding up at 0.5.