fix prankster blocking self-targeting moves

This commit is contained in:
Evan 2021-01-23 12:40:17 -07:00
parent a49b5d1ad0
commit 60f3ad77fe

View File

@ -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))