mirror of
https://github.com/pret/pokeemerald.git
synced 2026-09-30 05:53:57 -05:00
Prankster block check was missng the IsStatusMove check (#6987)
This commit is contained in:
@@ -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)))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user