From c8055c17f2d97a8efaea4b0618408fdfefa10425 Mon Sep 17 00:00:00 2001 From: yenatch Date: Mon, 5 May 2014 03:30:51 -0400 Subject: [PATCH] Fix static farcalls in AI scoring. --- battle/ai/scoring.asm | 48 ++++++++++++++----------------------------- 1 file changed, 15 insertions(+), 33 deletions(-) diff --git a/battle/ai/scoring.asm b/battle/ai/scoring.asm index cc8b50a6e..19c652370 100644 --- a/battle/ai/scoring.asm +++ b/battle/ai/scoring.asm @@ -22,9 +22,7 @@ AIScoring_RedStatus: ; 38591 push hl push de push bc - ld a, $b - ld hl, $441a - rst FarCall + callba Function2c41a pop bc pop de pop hl @@ -494,9 +492,8 @@ AIScoring_LockOn: ; 3881d ld [hBattleTurn], a push hl push bc - ld a, $d - ld hl, $47c8 - rst FarCall + + callba Function347c8 ld a, [$d265] cp $a @@ -1105,7 +1102,7 @@ AIScoring_SpDefenseUp2: ; 38aed AIScoring_Fly: ; 38b12 ld a, [PlayerSubStatus3] - and 1<