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
994 stars 566 forks source link

AI doesn't cast Calibrated Blast if the player gets hexproof/shroud from his creature #5940

Open MorihiroS opened 2 months ago

MorihiroS commented 2 months ago

Describe the bug AI doesn't cast Calibrated Blast if the player gets hexproof/shroud from his creature, although the AI can kill that creature with Calibrated Blast and thus deprive the player of its hexproof/shroud.

To Reproduce Steps to reproduce the behavior:

  1. Player has Metropolis Reformer/Shalai, Voice of Plenty on the battlefield.
  2. AI has 3+ Mountains on the battlefield and Calibrated Blast in hands.
  3. AI doesn't cast Calibrated Blast

Expected behavior AI should cast Calibrated Blast if the player gets hexproof/shroud from his creature to kill this creature.

Additional context There are only 7 creatures that give hexproof to a player: Aegis of the Gods, Enduring Angel, Keen-Eared Sentry, Metropolis Reformer, Shalai, Voice of Plenty, Sigarda, Heron's Grace and Spirit of the Hearth. And only 1 creature that give shroud to a player - True Believer.

Desktop OS: Windows 10 Java Version: 1.8.0_202-b08 Forge Version: 1.6.64-SNAPSHOT-08-15

Screenshots

Calib calib3

Hanmac commented 2 months ago

The Problem there is more that with Calibrated Blast, the Damage is only a bonus Also because of Randomness, the damage it might deal, may not be enough to kill