From effb1e67aa73367e6284314340d7ed519b92d1e2 Mon Sep 17 00:00:00 2001 From: Remy Oukaour Date: Fri, 22 Jul 2016 14:40:37 -0400 Subject: [PATCH] Fix some moves always missing --- battle/effect_commands.asm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/battle/effect_commands.asm b/battle/effect_commands.asm index 98911894bc..b48cca0660 100644 --- a/battle/effect_commands.asm +++ b/battle/effect_commands.asm @@ -1781,6 +1781,8 @@ BattleCommand_CheckHit: ; 34d32 .Substitute: ; Return nz if the opponent is behind a Substitute for certain moves + call CheckSubstituteOpp + jr z, .not_blocked ld a, BATTLE_VARS_MOVE_ANIM call GetBattleVar cp SWAGGER @@ -1789,6 +1791,7 @@ BattleCommand_CheckHit: ; 34d32 call GetBattleVar cp EFFECT_TRAP jr z, .blocked +.not_blocked xor a and a ret