mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-09 21:25:03 +01:00
fix prankster blocking self-targeting moves
This commit is contained in:
parent
a49b5d1ad0
commit
60f3ad77fe
@ -3190,6 +3190,7 @@ u8 AtkCanceller_UnableToUseMove(void)
|
||||
#if B_PRANKSTER >= GEN_7
|
||||
if (GetBattlerAbility(gBattlerAttacker) == ABILITY_PRANKSTER
|
||||
&& IS_MOVE_STATUS(gCurrentMove)
|
||||
&& gBattlerAttacker != gBattlerTarget
|
||||
&& !(gBattleMoves[gCurrentMove].target & MOVE_TARGET_OPPONENTS_FIELD)
|
||||
&& IS_BATTLER_OF_TYPE(gBattlerTarget, TYPE_DARK)
|
||||
&& !(gStatuses3[gBattlerTarget] & STATUS3_SEMI_INVULNERABLE))
|
||||
|
Loading…
Reference in New Issue
Block a user