Prankster block check was missng the IsStatusMove check (#6987)

This commit is contained in:
Alex 2025-05-26 13:06:19 +02:00 committed by GitHub
parent 372553b319
commit 803bd2dfbf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5616,7 +5616,8 @@ u32 AbilityBattleEffects(u32 caseID, u32 battler, u32 ability, u32 special, u32
// prankster check
if (effect == 0
&& GetChosenMovePriority(gBattlerAttacker) > 0
&& IsBattleMoveStatus(move)
&& GetChosenMovePriority(gBattlerAttacker) > 0
&& BlocksPrankster(move, gBattlerAttacker, gBattlerTarget, TRUE)
&& !(IsBattleMoveStatus(move) && (gLastUsedAbility == ABILITY_MAGIC_BOUNCE || gProtectStructs[gBattlerTarget].bounceMove)))
{