Card-Forge / forge

An unofficial rules engine for the world's greatest card game.
https://card-forge.github.io/forge/
GNU General Public License v3.0
1.01k stars 570 forks source link

AI casts Lightning Bolt and similar spells and target a creature that is unkillable by them #3994

Open MorihiroS opened 1 year ago

MorihiroS commented 1 year ago

Describe the bug AI casts Lightning Bolt and similar spells and target creatures like Shalai, Voice of Plenty even if it can't kill her with this spell

To Reproduce Steps to reproduce the behavior:

  1. Player casts Shalai, Voice of Plenty
  2. AI casts his single Lightning Bolt and target Shalai, Voice of Plenty
  3. AI pass the turn

Expected behavior AI shouldn't cast Lightning Bolt and similar spells to target creatures it can't kill with other spells this turn.

Desktop OS: Windows 10 Java Version: 1.8.0_202-b08 Forge Version: 1.6.59-SNAPSHOT-10.26

Screenshots

bolt

Agetian commented 1 year ago

Can't reproduce this one, must be situational and dependent on what the AI also had in hand at that moment. It might have had something in hand that it thought it could use to deal the finishing blow after the use of the Lightning Bolt, but actually couldn't (miscalculated either the mana cost or the total damage or something). Unfortunately, judging simply by the screenshot, it's impossible to tell what it could have been, I tested a few things (both with just Lightning Bolt alone and with some combinations of damage spells in the AI's hand) and it played them correctly in those tests. A save state representing the AI's hand contents would have helped here...

MorihiroS commented 1 year ago

@Agetian, I'll try to test it

MorihiroS commented 1 year ago

@Agetian, I have tested with Telepathy, you are right, everything works fine. If it happens again, I will clarify the request

MorihiroS commented 11 months ago

@Agetian, it happened again.

shalai shalai2

MorihiroS commented 11 months ago

@Hanmac, need AI label, pls

github-actions[bot] commented 10 months ago

This issue has not been updated in a while and has now been marked as stale. Stale messages will be auto closed.

MorihiroS commented 2 months ago

@Agetian, I have a suspicion that this is happening because Searing Blaze is in hands:

bolt1 bolt2 bolt3

MorihiroS commented 2 months ago

Same for Lava Dart...

dart1 dart2 dart3