summaryrefslogtreecommitdiff
path: root/battle/effects/rollout.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-06-17 12:52:32 -0700
committeryenatch <yenatch@gmail.com>2014-06-17 12:52:32 -0700
commitdbe4c7ab67cb88ef4ce725598b2082b13a566776 (patch)
treeabb7c105abbbbb6c0ed6b8a6e11e760b7f1d1a59 /battle/effects/rollout.asm
parentc2dba431884fdd9d61a90f6c3efd1876aa1cfa14 (diff)
Fix some misnamed substatus constants.
SUBSTATUS_ROLLOUT was actually SUBSTATUS_RAMPAGE. SUBSTATUS_ENCORED was actually SUBSTATUS_ROLLOUT. Substatus 5 bit 4 was actually SUBSTATUS_ENCORED. Also use some more (sub)status constants where needed.
Diffstat (limited to 'battle/effects/rollout.asm')
-rw-r--r--battle/effects/rollout.asm15
1 files changed, 7 insertions, 8 deletions
diff --git a/battle/effects/rollout.asm b/battle/effects/rollout.asm
index f108a9062..d3a765de5 100644
--- a/battle/effects/rollout.asm
+++ b/battle/effects/rollout.asm
@@ -7,19 +7,18 @@ BattleCommand5b: ; 37718
ld de, PlayerRolloutCount
ld a, [hBattleTurn]
and a
- jr z, .asm_37723
+ jr z, .ok
ld de, EnemyRolloutCount
-
-.asm_37723
+.ok
ld a, BATTLE_VARS_SUBSTATUS1
call GetBattleVar
- bit SUBSTATUS_ENCORED, a
- jr z, .asm_37731
+ bit SUBSTATUS_ROLLOUT, a
+ jr z, .reset
ld b, $4 ; doturn
jp SkipToBattleCommand
-.asm_37731
+.reset
xor a
ld [de], a
ret
@@ -66,13 +65,13 @@ BattleCommand5c: ; 37734
ld a, BATTLE_VARS_SUBSTATUS1
call GetBattleVarAddr
- res SUBSTATUS_ENCORED, [hl]
+ res SUBSTATUS_ROLLOUT, [hl]
jr .asm_37775
.asm_3776e
ld a, BATTLE_VARS_SUBSTATUS1
call GetBattleVarAddr
- set SUBSTATUS_ENCORED, [hl]
+ set SUBSTATUS_ROLLOUT, [hl]
.asm_37775
ld a, BATTLE_VARS_SUBSTATUS2