Pokemon animations

This commit is contained in:
PikalaxALT
2015-11-07 09:48:32 -05:00
parent e044580669
commit 2cbb1acc6e
11 changed files with 324 additions and 304 deletions

View File

@@ -576,7 +576,7 @@ AI_Smart_Explosion: ; 388a6
; Unless this is the enemy's last Pokemon...
push hl
callba CountEnemyAliveMons
callba CheckEnemyHasMonToSwitchTo
pop hl
jr nc, .asm_388b7
@@ -2028,7 +2028,7 @@ endr
jp nz, AIDiscourageMove
push hl
callba CountEnemyAliveMons
callba CheckEnemyHasMonToSwitchTo
pop hl
jr nc, .asm_38eb0
@@ -2160,7 +2160,7 @@ endr
AI_Smart_PerishSong: ; 38f4a
push hl
callab CountEnemyAliveMons
callab CheckEnemyHasMonToSwitchTo
pop hl
jr c, .no

View File

@@ -184,7 +184,7 @@ endr
CheckAbleToSwitch: ; 34941
xor a
ld [wc717], a
call CountEnemyAliveMons
call CheckEnemyHasMonToSwitchTo
ret c
ld a, [EnemySubStatus1]
@@ -197,7 +197,7 @@ CheckAbleToSwitch: ; 34941
; Perish count is 1
call CountEnemyAliveMons
call CheckEnemyHasMonToSwitchTo
call Function34b77
call Function34b20
call Function34a85
@@ -212,7 +212,7 @@ CheckAbleToSwitch: ; 34941
ret
.not_2
call CountEnemyAliveMons
call CheckEnemyHasMonToSwitchTo
sla c
sla c
ld b, $ff
@@ -284,7 +284,7 @@ CheckAbleToSwitch: ; 34941
cp 10
ret nc
call CountEnemyAliveMons
call CheckEnemyHasMonToSwitchTo
call Function34b77
call Function34b20
call Function34a85
@@ -300,7 +300,7 @@ CheckAbleToSwitch: ; 34941
; 349f4
CountEnemyAliveMons: ; 349f4
CheckEnemyHasMonToSwitchTo: ; 349f4
ld a, [OTPartyCount]
cp 2
jr c, .only_one