Minor bug and AI documentation fix

This commit is contained in:
Electro 2026-02-06 13:31:11 +00:00
parent e3967f88d8
commit 80656b26b1
2 changed files with 3 additions and 3 deletions

View File

@ -308,7 +308,7 @@ AIDecide_PokemonTrader_PowerGenerator:
### AI Full Heal has flawed logic for sleep ### AI Full Heal has flawed logic for sleep
The AI has the following checks when it is deciding whether to play Full Heal and its Active card is asleep in in [src/engine/duel/ai/trainer_cards.asm](https://github.com/pret/poketcg/blob/master/src/engine/duel/ai/trainer_cards.asm): The AI has the following checks when it is deciding whether to play Full Heal and its Active card is asleep in [src/engine/duel/ai/trainer_cards.asm](https://github.com/pret/poketcg/blob/master/src/engine/duel/ai/trainer_cards.asm):
``` ```
.asleep .asleep
@ -620,7 +620,7 @@ AIDecideBenchPokemonToSwitchTo:
jr z, .raise_score jr z, .raise_score
cp MEW_LV8 cp MEW_LV8
jr nz, .check_if_has_bench_utility jr nz, .check_if_has_bench_utility
+ call Swap Turn + call SwapTurn
ld a, DUELVARS_ARENA_CARD ld a, DUELVARS_ARENA_CARD
- call GetNonTurnDuelistVariable - call GetNonTurnDuelistVariable
+ call GetTurnDuelistVariable + call GetTurnDuelistVariable

View File

@ -916,7 +916,7 @@ AITryToPlayEnergyCard:
jr .play_energy_card jr .play_energy_card
; otherwise, look for any card and play it. ; otherwise, look for any card and play it.
; if it's a boss deck, only play double colorless in this situation. ; if it's a boss deck, don't play double colorless in this situation.
.look_for_any_energy .look_for_any_energy
ld hl, wDuelTempList ld hl, wDuelTempList
call CountCardsInDuelTempList call CountCardsInDuelTempList