AI casts two Solitudes after player casts it's big creature

Open
#13,091 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
58/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
ai, game-dev

Research direction

Start by reproducing the sequence in the issue: have the AI cast two Solitudes in response to Eladamri, Korvecdal, then check whether it also happens without FlatMC. Trace the AI's decision around evoke spells and the pending triggers from the first Solitude. Done means the AI waits for those triggers to resolve before deciding whether to cast another evoke spell.

Written by the indexing model from the issue text.

Description

Describe the bug
AI first casts one Solitude to remove a creature that entered the battlefield under the opponent's control, and immediately casts a second Solitude

To Reproduce
Steps to reproduce the behavior:

  1. Player has 2 Forests and Noble Hierarch on the battlefield
  2. AI has two Solitudes and 2 other white cards in hand
  3. Player casts Eladamri, Korvecdal
  4. AI casts a first Solitude and targets Eladamri, Korvecdal
  5. AI immediately casts a second Solitude and targets Noble Hierarch

Expected behavior
AI shouldn't cast a second Solitude while the triggers from the first one are still on the stack

Same for other evoke spells

Additional context
Actual for:

  • AI with FlatMC
  • AI without FlatMC

Desktop

  • OS: Windows 10
  • Version: 2.0.16-SNAPSHOT-11.25

Screenshots

AI with FlatMC

sol (flatMC)

AI without FlatMC

sol (classic)
Dominant language
Java
Stars
2.7k
Forks
1.1k
Avg merge
19h 28m
Merged PRs (30d)
316

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Card-Forge/forge

All issues in Card-Forge/forge

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.