1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
AIActionTable_ZappingSelfdestruct:
dw .do_turn ; unused
dw .do_turn
dw .start_duel
dw .forced_switch
dw .ko_switch
dw .take_prize
.do_turn
call AIMainTurnLogic
ret
.start_duel
call InitAIDuelVars
call .store_list_pointers
call SetUpBossStartingHandAndDeck
call TrySetUpBossStartingPlayArea
ret nc
call AIPlayInitialBasicCards
ret
.forced_switch
call AIDecideBenchPokemonToSwitchTo
ret
.ko_switch
call AIDecideBenchPokemonToSwitchTo
ret
.take_prize
call AIPickPrizeCards
ret
.list_arena
db KANGASKHAN
db ELECTABUZZ2
db TAUROS
db MAGNEMITE1
db VOLTORB
db $00
.list_bench
db MAGNEMITE1
db VOLTORB
db ELECTABUZZ2
db TAUROS
db KANGASKHAN
db $00
.list_retreat
ai_retreat VOLTORB, -1
db $00
.list_energy
ai_energy MAGNEMITE1, 3, +1
ai_energy MAGNETON1, 4, +0
ai_energy VOLTORB, 3, +1
ai_energy ELECTRODE1, 3, +0
ai_energy ELECTABUZZ2, 1, +0
ai_energy KANGASKHAN, 2, -2
ai_energy TAUROS, 3, +0
db $00
.list_prize
db KANGASKHAN
db $00
.store_list_pointers
store_list_pointer wAICardListAvoidPrize, .list_prize
store_list_pointer wAICardListArenaPriority, .list_arena
store_list_pointer wAICardListBenchPriority, .list_bench
store_list_pointer wAICardListPlayFromHandPriority, .list_bench
; missing store_list_pointer wAICardListRetreatBonus, .list_retreat
store_list_pointer wAICardListEnergyBonus, .list_energy
ret
|