summaryrefslogtreecommitdiff
path: root/engine/battle/move_effects
diff options
context:
space:
mode:
Diffstat (limited to 'engine/battle/move_effects')
-rw-r--r--engine/battle/move_effects/bide.asm2
-rw-r--r--engine/battle/move_effects/curse.asm2
-rw-r--r--engine/battle/move_effects/metronome.asm4
-rw-r--r--engine/battle/move_effects/mirror_move.asm4
-rw-r--r--engine/battle/move_effects/present.asm6
-rw-r--r--engine/battle/move_effects/selfdestruct.asm2
-rw-r--r--engine/battle/move_effects/sleep_talk.asm4
-rw-r--r--engine/battle/move_effects/substitute.asm2
-rw-r--r--engine/battle/move_effects/teleport.asm2
-rw-r--r--engine/battle/move_effects/transform.asm4
-rw-r--r--engine/battle/move_effects/triple_kick.asm4
11 files changed, 18 insertions, 18 deletions
diff --git a/engine/battle/move_effects/bide.asm b/engine/battle/move_effects/bide.asm
index 74f7c9cfa..300ff8c7c 100644
--- a/engine/battle/move_effects/bide.asm
+++ b/engine/battle/move_effects/bide.asm
@@ -95,6 +95,6 @@ BattleCommand_UnleashEnergy:
inc a
ld [bc], a
ld a, 1
- ld [wKickCounter], a
+ ld [wBattleAnimParam], a
call AnimateCurrentMove
jp EndMoveEffect
diff --git a/engine/battle/move_effects/curse.asm b/engine/battle/move_effects/curse.asm
index 3507c6687..049e79e5e 100644
--- a/engine/battle/move_effects/curse.asm
+++ b/engine/battle/move_effects/curse.asm
@@ -39,7 +39,7 @@ BattleCommand_Curse:
; Raise Attack and Defense, and lower Speed.
ld a, $1
- ld [wKickCounter], a
+ ld [wBattleAnimParam], a
call AnimateCurrentMove
ld a, SPEED
call LowerStat
diff --git a/engine/battle/move_effects/metronome.asm b/engine/battle/move_effects/metronome.asm
index 25197d7cd..5b43c9b75 100644
--- a/engine/battle/move_effects/metronome.asm
+++ b/engine/battle/move_effects/metronome.asm
@@ -5,11 +5,11 @@ BattleCommand_Metronome:
call CheckUserIsCharging
jr nz, .asm_3742b
- ld a, [wKickCounter]
+ ld a, [wBattleAnimParam]
push af
call BattleCommand_LowerSub
pop af
- ld [wKickCounter], a
+ ld [wBattleAnimParam], a
.asm_3742b
call LoadMoveAnim
diff --git a/engine/battle/move_effects/mirror_move.asm b/engine/battle/move_effects/mirror_move.asm
index 98e8aacc9..86259d11b 100644
--- a/engine/battle/move_effects/mirror_move.asm
+++ b/engine/battle/move_effects/mirror_move.asm
@@ -40,11 +40,11 @@ BattleCommand_MirrorMove:
call CheckUserIsCharging
jr nz, .done
- ld a, [wKickCounter]
+ ld a, [wBattleAnimParam]
push af
call BattleCommand_LowerSub
pop af
- ld [wKickCounter], a
+ ld [wBattleAnimParam], a
.done
call BattleCommand_MoveDelay
diff --git a/engine/battle/move_effects/present.asm b/engine/battle/move_effects/present.asm
index 188c4e889..8d7461fa1 100644
--- a/engine/battle/move_effects/present.asm
+++ b/engine/battle/move_effects/present.asm
@@ -41,7 +41,7 @@ BattleCommand_Present:
.got_power
ld a, c
- ld [wPresentPower], a
+ ld [wBattleAnimParam], a
call AnimateCurrentMoveEitherSide
ld d, [hl]
pop bc
@@ -49,8 +49,8 @@ BattleCommand_Present:
.heal_effect
pop bc
- ld a, 3
- ld [wPresentPower], a
+ ld a, $3 ; heal animation
+ ld [wBattleAnimParam], a
call AnimateCurrentMove
call BattleCommand_SwitchTurn
ld hl, AICheckPlayerMaxHP
diff --git a/engine/battle/move_effects/selfdestruct.asm b/engine/battle/move_effects/selfdestruct.asm
index d6eeac484..ef5e2e8f9 100644
--- a/engine/battle/move_effects/selfdestruct.asm
+++ b/engine/battle/move_effects/selfdestruct.asm
@@ -12,7 +12,7 @@ BattleCommand_Selfdestruct:
ld [hli], a
ld [hl], a
ld a, $1
- ld [wKickCounter], a
+ ld [wBattleAnimParam], a
call BattleCommand_LowerSub
call LoadMoveAnim
ld a, BATTLE_VARS_SUBSTATUS4
diff --git a/engine/battle/move_effects/sleep_talk.asm b/engine/battle/move_effects/sleep_talk.asm
index 92bff2602..96522af23 100644
--- a/engine/battle/move_effects/sleep_talk.asm
+++ b/engine/battle/move_effects/sleep_talk.asm
@@ -52,11 +52,11 @@ BattleCommand_SleepTalk:
ld [hl], a
call CheckUserIsCharging
jr nz, .charging
- ld a, [wKickCounter]
+ ld a, [wBattleAnimParam]
push af
call BattleCommand_LowerSub
pop af
- ld [wKickCounter], a
+ ld [wBattleAnimParam], a
.charging
call LoadMoveAnim
call UpdateMoveData
diff --git a/engine/battle/move_effects/substitute.asm b/engine/battle/move_effects/substitute.asm
index d2342c0d6..25209c23b 100644
--- a/engine/battle/move_effects/substitute.asm
+++ b/engine/battle/move_effects/substitute.asm
@@ -62,7 +62,7 @@ BattleCommand_Substitute:
xor a
ld [wNumHits], a
ld [wFXAnimID + 1], a
- ld [wKickCounter], a
+ ld [wBattleAnimParam], a
ld a, SUBSTITUTE
call LoadAnim
jr .finish
diff --git a/engine/battle/move_effects/teleport.asm b/engine/battle/move_effects/teleport.asm
index ba470798a..6b1d9275f 100644
--- a/engine/battle/move_effects/teleport.asm
+++ b/engine/battle/move_effects/teleport.asm
@@ -75,7 +75,7 @@ BattleCommand_Teleport:
ld [wNumHits], a
inc a
ld [wForcedSwitch], a
- ld [wKickCounter], a
+ ld [wBattleAnimParam], a
call SetBattleDraw
call BattleCommand_LowerSub
call LoadMoveAnim
diff --git a/engine/battle/move_effects/transform.asm b/engine/battle/move_effects/transform.asm
index fe94c4f2c..92a13c540 100644
--- a/engine/battle/move_effects/transform.asm
+++ b/engine/battle/move_effects/transform.asm
@@ -12,7 +12,7 @@ BattleCommand_Transform:
ld [wNumHits], a
ld [wFXAnimID + 1], a
ld a, $1
- ld [wKickCounter], a
+ ld [wBattleAnimParam], a
ld a, BATTLE_VARS_SUBSTATUS4
call GetBattleVarAddr
bit SUBSTATUS_SUBSTITUTE, [hl]
@@ -130,7 +130,7 @@ BattleCommand_Transform:
ld [wNumHits], a
ld [wFXAnimID + 1], a
ld a, $2
- ld [wKickCounter], a
+ ld [wBattleAnimParam], a
pop af
ld a, SUBSTITUTE
call nz, LoadAnim
diff --git a/engine/battle/move_effects/triple_kick.asm b/engine/battle/move_effects/triple_kick.asm
index e41044c9d..a192ddaaa 100644
--- a/engine/battle/move_effects/triple_kick.asm
+++ b/engine/battle/move_effects/triple_kick.asm
@@ -1,7 +1,7 @@
BattleCommand_TripleKick:
; triplekick
- ld a, [wKickCounter]
+ ld a, [wBattleAnimParam]
ld b, a
inc b
ld hl, wCurDamage + 1
@@ -29,6 +29,6 @@ BattleCommand_TripleKick:
BattleCommand_KickCounter:
; kickcounter
- ld hl, wKickCounter
+ ld hl, wBattleAnimParam
inc [hl]
ret