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.03k stars 571 forks source link

AI cascades to Living End and casts Living End when it has a lot of creatures on the battlefield #4389

Open MorihiroS opened 11 months ago

MorihiroS commented 11 months ago

Describe the bug AI casts spell with cascade again, cascades to Living End and choose to cast it when AI has a lot of creatures on the battlefield. So it kills its own creatures and returns me my good creatures.

To Reproduce Steps to reproduce the behavior:

  1. AI casts Violent Outburst/Shardless Agent and cascades to Living End
  2. AI has Violent Outburst in hand and a lot of creatures on the battlefield
  3. AI casts Violent Outburst to cascade to Living End again
  4. AI chooses to cast Living End

Expected behavior AI shouldn't cast spell with cascade again and cascade to Living End when it has a lot of creatures on the battlefield. Or AI should choose not to cast Living End when it has a lot of creatures on the battlefield.

Desktop OS: Windows 10 Java Version: 1.8.0_202-b08 Forge Version: from 1.6.60-SNAPSHOT-12.15 to 1.6.60-SNAPSHOT-02.03

Screenshots

living1 living2

Hanmac commented 11 months ago

This has two Solutions:

MorihiroS commented 9 months ago

Due to the updated rules for suspend, AI can simply choose not to cast Living End in this situation

MorihiroS commented 3 months ago

Still actual:

living