mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-10 05:35:05 +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 B_PRANKSTER >= GEN_7
|
||||||
if (GetBattlerAbility(gBattlerAttacker) == ABILITY_PRANKSTER
|
if (GetBattlerAbility(gBattlerAttacker) == ABILITY_PRANKSTER
|
||||||
&& IS_MOVE_STATUS(gCurrentMove)
|
&& IS_MOVE_STATUS(gCurrentMove)
|
||||||
|
&& gBattlerAttacker != gBattlerTarget
|
||||||
&& !(gBattleMoves[gCurrentMove].target & MOVE_TARGET_OPPONENTS_FIELD)
|
&& !(gBattleMoves[gCurrentMove].target & MOVE_TARGET_OPPONENTS_FIELD)
|
||||||
&& IS_BATTLER_OF_TYPE(gBattlerTarget, TYPE_DARK)
|
&& IS_BATTLER_OF_TYPE(gBattlerTarget, TYPE_DARK)
|
||||||
&& !(gStatuses3[gBattlerTarget] & STATUS3_SEMI_INVULNERABLE))
|
&& !(gStatuses3[gBattlerTarget] & STATUS3_SEMI_INVULNERABLE))
|
||||||
|
Loading…
Reference in New Issue
Block a user