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
978 stars 563 forks source link

AI wastes mana by using Rogue's Passage unnecessarily #4501

Open Triquetra opened 9 months ago

Triquetra commented 9 months ago

Describe the bug Playing a Commander Gauntlet against the AI, all my creatures were tapped. The AI had only Tetsuko Umezawa, Fugitive on the field. Tetsuko is unblockable. On its turn, the AI used its mana to activate Rogue's Passage to give Tetsuko unblockable. That was a waste of mana and an opportunity to play something else.

Expected behavior The AI should have played something else, or at least held its mana for the draw step if it couldn't play anything else in its hand.

Screenshots 2023-12-22 22_32_16-Forge_ 1 6 60-SNAPSHOT

Desktop (please complete the following information):

Hanmac commented 9 months ago

@Agetian Ai need better logic for "target can't be blocked by" effects if the target would be already "unblockable" or if there are no blockers

Ampersandnz commented 9 months ago

Same happens with Karn's Bastion - AI will use it even when they have nothing to proliferate