summaryrefslogtreecommitdiff
path: root/battle/effect_commands.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2017-12-24 16:57:20 -0500
committerGitHub <noreply@github.com>2017-12-24 16:57:20 -0500
commit70e6b5947b5cc9ca9fd93c720c7f97d9e018da2d (patch)
treec1d9606acc6a47212cbc6a5faa79b289deba010a /battle/effect_commands.asm
parent8a8b96138be070d0154a79adc00ce2fb2e0f12d4 (diff)
parentcbec3771e2944a502eea69aeb012bea6cdc4e26b (diff)
Merge pull request #417 from mid-kid/master
mid-kid's patches
Diffstat (limited to 'battle/effect_commands.asm')
-rw-r--r--battle/effect_commands.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/battle/effect_commands.asm b/battle/effect_commands.asm
index 57e4c574f..b40055f04 100644
--- a/battle/effect_commands.asm
+++ b/battle/effect_commands.asm
@@ -3881,11 +3881,11 @@ BattleCommand_Counter: ; 35813
ld de, StringBuffer1
call GetMoveData
- ld a, [StringBuffer1 + 2]
+ ld a, [StringBuffer1 + MOVE_POWER]
and a
ret z
- ld a, [StringBuffer1 + 3]
+ ld a, [StringBuffer1 + MOVE_TYPE]
cp SPECIAL
ret nc
@@ -7184,7 +7184,7 @@ CheckOpponentWentFirst: ; 36abf
; 36ac9
-BattleCommand_KingsRock: ; 36ac9
+BattleCommand_HeldFlinch: ; 36ac9
; kingsrock
ld a, [AttackMissed]
@@ -7193,7 +7193,7 @@ BattleCommand_KingsRock: ; 36ac9
call GetUserItem
ld a, b
- cp HELD_TRADE_EVOLVE ; Only King's Rock has this effect
+ cp HELD_FLINCH
ret nz
call CheckSubstituteOpp