Cursed Body PP check

This commit is contained in:
DizzyEggg 2019-03-30 11:58:19 +01:00
parent e2268bd938
commit 86e8bf0ecb

View File

@ -3168,6 +3168,7 @@ u8 AbilityBattleEffects(u8 caseID, u8 battler, u8 ability, u8 special, u16 moveA
&& TARGET_TURN_DAMAGED
&& gDisableStructs[gBattlerAttacker].disabledMove == MOVE_NONE
&& IsBattlerAlive(gBattlerAttacker)
&& gBattleMons[gBattlerAttacker].pp[gChosenMovePos] != 0
&& (Random() % 3) == 0)
{
gDisableStructs[gBattlerAttacker].disabledMove = gChosenMove;