summaryrefslogtreecommitdiff
path: root/engine/battle/misc.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/battle/misc.asm')
-rw-r--r--engine/battle/misc.asm18
1 files changed, 9 insertions, 9 deletions
diff --git a/engine/battle/misc.asm b/engine/battle/misc.asm
index 40a307d61..581f5381e 100644
--- a/engine/battle/misc.asm
+++ b/engine/battle/misc.asm
@@ -53,7 +53,7 @@ GetPlayerBackpicCoords: ; fbd9d (3e:7d9d)
DoWeatherModifiers: ; fbda4
ld de, WeatherTypeModifiers
- ld a, [Weather]
+ ld a, [wBattleWeather]
ld b, a
ld a, [wd265] ; move type
ld c, a
@@ -105,7 +105,7 @@ DoWeatherModifiers: ; fbda4
.ApplyModifier:
xor a
ld [hMultiplicand + 0], a
- ld hl, CurDamage
+ ld hl, wCurDamage
ld a, [hli]
ld [hMultiplicand + 1], a
ld a, [hl]
@@ -138,9 +138,9 @@ DoWeatherModifiers: ; fbda4
.Update:
ld a, b
- ld [CurDamage], a
+ ld [wCurDamage], a
ld a, c
- ld [CurDamage + 1], a
+ ld [wCurDamage + 1], a
.done
ret
@@ -153,7 +153,7 @@ DoBadgeTypeBoosts: ; fbe24
and a
ret nz
- ld a, [InBattleTowerBattle]
+ ld a, [wInBattleTowerBattle]
and a
ret nz
@@ -189,10 +189,10 @@ DoBadgeTypeBoosts: ; fbe24
jr .CheckBadge
.ApplyBoost:
- ld a, [CurDamage]
+ ld a, [wCurDamage]
ld h, a
ld d, a
- ld a, [CurDamage + 1]
+ ld a, [wCurDamage + 1]
ld l, a
ld e, a
@@ -216,9 +216,9 @@ DoBadgeTypeBoosts: ; fbe24
.Update:
ld a, h
- ld [CurDamage], a
+ ld [wCurDamage], a
ld a, l
- ld [CurDamage + 1], a
+ ld [wCurDamage + 1], a
.done
pop bc