Skip to content

Commit

Permalink
Fix bugs_and_glitches.md file path
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectroDeoxys authored Dec 5, 2024
1 parent 94c3d86 commit 27f3896
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bugs_and_glitches.md
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ AIDecide_FullHeal:

Under very specific conditions, the AI might attempt to use its Arena card's Pkmn Power as an attack. This is because when the AI plays Pluspower, it is hardcoding which attack to use when it finally decides to attack. This does not account for the case where afterwards, for example, the AI plays a Professor Oak and obtains an evolution of that card, and then evolves that card. If the new evolved Pokémon has Pkmn Power on the first "attack slot", and the AI hardcoded to use that attack, then it will be used. This specific combination can be seen when playing with John, since his deck contains Professor Oak, Pluspower, and Doduo and its evolution Dodrio (which has the Pkmn Power Retreat Aid).

**Fix:** Edit `AIDecideEvolution` in [src/engine/duel/ai/trainer_cards.asm](https://github.com/pret/poketcg/blob/master/src/engine/duel/ai/trainer_cards.asm):
**Fix:** Edit `AIDecideEvolution` in [src/engine/duel/ai/hand_pokemon.asm](https://github.com/pret/poketcg/blob/master/src/engine/duel/ai/hand_pokemon.asm):
```diff
AIDecideEvolution:
...
Expand Down

0 comments on commit 27f3896

Please sign in to comment.