Skip to content

Improve Welcome the Darkness AI - #11710

Open
Nerdslayer wants to merge 1 commit into
Card-Forge:masterfrom
Nerdslayer:ai-welcome-the-darkness
Open

Improve Welcome the Darkness AI#11710
Nerdslayer wants to merge 1 commit into
Card-Forge:masterfrom
Nerdslayer:ai-welcome-the-darkness

Conversation

@Nerdslayer

Copy link
Copy Markdown

Description

Improves the AI's handling of Welcome the Darkness so it does not cast the spell for a dangerously low X value simply because that is the maximum it can currently afford.

The AI now uses the following thresholds:

  • X=1 or X=2 only when it would not lower its life total.
  • X=3 at 5 or less life.
  • X=4 at 7 or less life.
  • X=5 at 12 or less life.
  • X=6 or greater without an additional life threshold.

The AI also avoids casting the spell when the resulting life total would allow an opponent to deal lethal combat damage during the next predicted combat. This prediction includes the X/X flying Demon created by the spell as a prospective blocker.

The shared combat prediction logic was extended to support additional virtual blockers alongside excluded blockers. Both collections are applied, with exclusions taking precedence.

AI assisted in these changes.

Fixes #11708

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

AI casts Welcome the Darkness for X=1, reducing itself to 1 life

2 participants