Skip to content

Commit

Permalink
Fix some moves always missing
Browse files Browse the repository at this point in the history
  • Loading branch information
roukaour committed Jul 22, 2016
1 parent 94450ee commit effb1e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions battle/effect_commands.asm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -1789,6 +1791,7 @@ BattleCommand_CheckHit: ; 34d32
call GetBattleVar
cp EFFECT_TRAP
jr z, .blocked
.not_blocked
xor a
and a
ret
Expand Down

0 comments on commit effb1e6

Please sign in to comment.