Removed redundant check in Punk Rock's effect

This commit is contained in:
LOuroboros 2020-12-19 19:15:12 -03:00
parent a417a1b2b9
commit 819001c102

View file

@ -6778,7 +6778,7 @@ static u32 CalcMoveBasePowerAfterModifiers(u16 move, u8 battlerAtk, u8 battlerDe
MulModifier(&modifier, UQ_4_12(1.2));
break;
case ABILITY_PUNK_ROCK:
if ((gBattleMoves[move].flags & FLAG_SOUND) && !IS_MOVE_STATUS(move))
if (gBattleMoves[move].flags & FLAG_SOUND)
MulModifier(&modifier, UQ_4_12(1.3));
break;
}
@ -7234,7 +7234,7 @@ static u32 CalcDefenseStat(u16 move, u8 battlerAtk, u8 battlerDef, u8 moveType,
MulModifier(&modifier, UQ_4_12(1.5));
break;
case ABILITY_PUNK_ROCK:
if ((gBattleMoves[move].flags & FLAG_SOUND) && !IS_MOVE_STATUS(move))
if (gBattleMoves[move].flags & FLAG_SOUND)
MulModifier(&modifier, UQ_4_12(1.3));
break;
}