Merge pull request #1882 from kleeenexfeu/battle_engine

Serene Grace affects King's rock
This commit is contained in:
ghoulslash 2021-11-11 16:43:08 -05:00 committed by GitHub
commit e2e43444ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6860,6 +6860,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