[FlatMC] AI casts Ephemerate and Kozilek's Command at the least opportune moment

Open
#12,930 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Start by locating the FlatMC AI logic that chooses when to cast spells, then trace how it evaluates Ephemerate and Kozilek's Command across turn phases and player actions. Reproduce the reported upkeep and draw-step casts, and check the related AI tests if available. Done means the AI waits for a more suitable phase or response opportunity for both spells.

Written by the indexing model from the issue text.

Description

Describe the bug
AI casts Ephemerate at it's own upkeep and Kozilek's Command at player's draw step

To Reproduce
Steps to reproduce the behavior:

  1. AI casts Ephemerate at it's own upkeep

OR

  1. AI casts Kozilek's Command at player's draw step

Expected behavior
AI should cast Kozilek's Command during the end step or in response to a specific player action (for example, protection spells), but definitely not during the player's draw step.

AI should cast Ephemerate during its main phase, when more information is available or in response to a specific player action

Additional context
Actual for AI with FlatMC

Desktop

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

Screenshots

command ephemer
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.