summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rwxr-xr-xengine/battle/safari_zone.asm2
-rwxr-xr-xengine/items/items.asm8
2 files changed, 5 insertions, 5 deletions
diff --git a/engine/battle/safari_zone.asm b/engine/battle/safari_zone.asm
index 1eb1a615..4672892d 100755
--- a/engine/battle/safari_zone.asm
+++ b/engine/battle/safari_zone.asm
@@ -19,7 +19,7 @@ PrintSafariZoneBattleText:
ld [wd0b5], a
call GetMonHeader
ld a, [wMonHCatchRate]
- ld [wEnemyMonCatchRate], a
+ ld [wEnemyMonActualCatchRate], a
pop hl
.asm_429f
push hl
diff --git a/engine/items/items.asm b/engine/items/items.asm
index ada4d7db..3bb2ec9e 100755
--- a/engine/items/items.asm
+++ b/engine/items/items.asm
@@ -297,7 +297,7 @@ ItemUseBall:
pop bc ; b = Rand1 - Status
; If Rand1 - Status > CatchRate, the ball fails to capture the Pokémon.
- ld a, [wEnemyMonCatchRate]
+ ld a, [wEnemyMonActualCatchRate]
cp b
jr c, .failedToCapture
@@ -325,7 +325,7 @@ ItemUseBall:
xor a
ld [H_MULTIPLICAND], a
ld [H_MULTIPLICAND + 1], a
- ld a, [wEnemyMonCatchRate]
+ ld a, [wEnemyMonActualCatchRate]
ld [H_MULTIPLICAND + 2], a
ld a, 100
ld [H_MULTIPLIER], a
@@ -1434,7 +1434,7 @@ VitaminText:
ItemUseBait:
ld hl, ThrewBaitText
call PrintText
- ld hl, wEnemyMonCatchRate ; catch rate
+ ld hl, wEnemyMonActualCatchRate ; catch rate
srl [hl] ; halve catch rate
ld a, BAIT_ANIM
ld hl, wSafariBaitFactor ; bait factor
@@ -1444,7 +1444,7 @@ ItemUseBait:
ItemUseRock:
ld hl, ThrewRockText
call PrintText
- ld hl, wEnemyMonCatchRate ; catch rate
+ ld hl, wEnemyMonActualCatchRate ; catch rate
ld a, [hl]
add a ; double catch rate
jr nc, .noCarry