mirror of
https://github.com/pret/pokeemerald.git
synced 2026-10-01 06:17:43 -05:00
fix prankster blocking self-targeting moves
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user