ref: 7350c3708fc2463e1eb6024c03de5c85b50aa38f
parent: 2ff7f50584e31c097ca4aa509d9dfe9d9c252465
author: Remy Oukaour <remy.oukaour@gmail.com>
date: Thu Dec 14 07:19:26 EST 2017
Replace two numbers with constants (found by pfero)
--- a/battle/core.asm
+++ b/battle/core.asm
@@ -4454,7 +4454,7 @@
HandleHPHealingItem: ; 3dd2f
callab GetOpponentItem
ld a, b
- cp $1
+ cp HELD_BERRY
ret nz
ld de, EnemyMonHP + 1
ld hl, EnemyMonMaxHP
--- a/battle/effect_commands.asm
+++ b/battle/effect_commands.asm
@@ -9806,7 +9806,7 @@
ret z
push hl
- ld hl, ItemAttributes + 2
+ ld hl, ItemAttributes + ITEMATTR_EFFECT
dec a
ld c, a
ld b, 0