magic bounce overrides prankster blockage
This commit is contained in:
parent
2067f563cd
commit
a50f03a06b
1 changed files with 2 additions and 1 deletions
|
@ -3408,7 +3408,8 @@ u8 AtkCanceller_UnableToUseMove(void)
|
|||
&& gBattlerAttacker != gBattlerTarget
|
||||
&& !(gBattleMoves[gCurrentMove].target & MOVE_TARGET_OPPONENTS_FIELD)
|
||||
&& IS_BATTLER_OF_TYPE(gBattlerTarget, TYPE_DARK)
|
||||
&& !(gStatuses3[gBattlerTarget] & STATUS3_SEMI_INVULNERABLE))
|
||||
&& !(gStatuses3[gBattlerTarget] & STATUS3_SEMI_INVULNERABLE)
|
||||
&& GetBattlerAbility(gBattlerTarget) != ABILITY_MAGIC_BOUNCE) // Magic bounce will bounce back prankster'd status move instead of blocking it
|
||||
{
|
||||
if (!(gBattleTypeFlags & BATTLE_TYPE_DOUBLE) || !(gBattleMoves[gCurrentMove].target & (MOVE_TARGET_BOTH | MOVE_TARGET_FOES_AND_ALLY)))
|
||||
CancelMultiTurnMoves(gBattlerAttacker); // don't cancel moves that can hit two targets bc one target might not be protected
|
||||
|
|
Loading…
Reference in a new issue