Serene Grace affects King's rock

according to https://bulbapedia.bulbagarden.net/wiki/King%27s_Rock
This commit is contained in:
kleeenexfeu 2021-11-10 20:45:39 +01:00 committed by GitHub
parent e886076998
commit 59abb0ff4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6847,6 +6847,8 @@ u8 ItemBattleEffects(u8 caseID, u8 battlerId, bool8 moveTurn)
switch (atkHoldEffect)
{
case HOLD_EFFECT_FLINCH:
if (GetBattlerAbility(gBattlerAttacker) == ABILITY_SERENE_GRACE)
atkHoldEffectParam *= 2;
if (gBattleMoveDamage != 0 // Need to have done damage
&& !(gMoveResultFlags & MOVE_RESULT_NO_EFFECT)
&& TARGET_TURN_DAMAGED