Skip to content

Commit

Permalink
Merge pull request #296 from kleeenexfeu/master
Browse files Browse the repository at this point in the history
Serene Grace affects king's rock
  • Loading branch information
BuffelSaft authored Nov 11, 2021
2 parents 3f062c9 + cb35505 commit 6df2bb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/battle_util.c
Original file line number Diff line number Diff line change
Expand Up @@ -6969,6 +6969,8 @@ case ITEMEFFECT_KINGSROCK:
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
Expand Down

0 comments on commit 6df2bb9

Please sign in to comment.