summaryrefslogtreecommitdiff
path: root/engine/battle/e.asm
diff options
context:
space:
mode:
authorU-Daniel-PC\Daniel <corrnondacqb@yahoo.com>2014-09-19 23:19:05 -0400
committerU-Daniel-PC\Daniel <corrnondacqb@yahoo.com>2014-09-19 23:19:05 -0400
commitdac95cb42bb8bc953c7a1e1d345a549846d51abf (patch)
treeb996727e4f739da761fc1fa2418c65415ebf93d8 /engine/battle/e.asm
parent57113a7651ba8a7f88e119ca3de7acb45a77db69 (diff)
parent1185d69819af3493fe8ace9f576fee4b420db55e (diff)
Merge branch 'master' of https://github.com/iimarckus/pokered
Diffstat (limited to 'engine/battle/e.asm')
-rwxr-xr-xengine/battle/e.asm8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/battle/e.asm b/engine/battle/e.asm
index 8b0476ca..9abeeec8 100755
--- a/engine/battle/e.asm
+++ b/engine/battle/e.asm
@@ -587,7 +587,7 @@ Func_39b87: ; 39b87 (e:5b87)
jr z, .asm_39bc1
push hl
ld [wd0b5], a
- ld a, $2c
+ ld a, BANK(MoveNames)
ld [wPredefBank], a
ld a, MOVE_NAME
ld [W_LISTTYPE], a
@@ -1407,14 +1407,14 @@ SetupEnemyPartyPokeballs: ; 3a887 (e:6887)
ld [hl], $20
ld a, $f8
ld [wTrainerEngageDistance], a
- ld hl, wOAMBuffer + $18
+ ld hl, wOAMBuffer + PARTY_LENGTH * 4
jp Func_3a8e1
SetupPokeballs: ; 0x3a8a6
ld a, [de]
push af
ld de, wBuffer
- ld c, $6 ; max num of partymons
+ ld c, PARTY_LENGTH
ld a, $34 ; empty pokeball
.emptyloop
ld [de], a
@@ -1462,7 +1462,7 @@ PickPokeball: ; 3a8c2 (e:68c2)
Func_3a8e1: ; 3a8e1 (e:68e1)
ld de, wHPBarMaxHP
- ld c, $6
+ ld c, PARTY_LENGTH
.asm_3a8e6
ld a, [W_BASECOORDY] ; wd082
ld [hli], a