From 80656b26b1e75bf320857e7ed3de0a28052d5977 Mon Sep 17 00:00:00 2001 From: Electro Date: Fri, 6 Feb 2026 13:31:11 +0000 Subject: [PATCH] Minor bug and AI documentation fix --- bugs_and_glitches.md | 4 ++-- src/engine/duel/ai/energy.asm | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bugs_and_glitches.md b/bugs_and_glitches.md index 26b3509..d3c541f 100644 --- a/bugs_and_glitches.md +++ b/bugs_and_glitches.md @@ -308,7 +308,7 @@ AIDecide_PokemonTrader_PowerGenerator: ### 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 @@ -620,7 +620,7 @@ AIDecideBenchPokemonToSwitchTo: jr z, .raise_score cp MEW_LV8 jr nz, .check_if_has_bench_utility -+ call Swap Turn ++ call SwapTurn ld a, DUELVARS_ARENA_CARD - call GetNonTurnDuelistVariable + call GetTurnDuelistVariable diff --git a/src/engine/duel/ai/energy.asm b/src/engine/duel/ai/energy.asm index 54a0970..93d44d6 100644 --- a/src/engine/duel/ai/energy.asm +++ b/src/engine/duel/ai/energy.asm @@ -916,7 +916,7 @@ AITryToPlayEnergyCard: jr .play_energy_card ; 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 ld hl, wDuelTempList call CountCardsInDuelTempList