AI taps every land to pay for Forcefield activation

Open
#12,970 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
57/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
ai, game-dev

Research direction

Start by tracing how the AI chooses mana to pay for Forcefield's activated ability when an unblocked creature deals damage; the issue does not name the relevant source file or test. Reproduce the attack with Forcefield in play and check whether payment taps only one land. The fix is done when the AI pays the required one mana without tapping its other available lands.

Written by the indexing model from the issue text.

Description

Describe the bug
"Forcefield" is on the battlefield under the AI control. When my creature deals damage to the opponent, the AI will use all available mana to pay for the activated effect of "Forcefield" even though it only needs to pay 1.

To Reproduce
Steps to reproduce the behavior:

  1. AI has Forcefield in play
  2. Attack opponent with unblocked creature

Expected behavior
The AI taps 1 land to pay the 1 for the activated effect

Screenshots

Screenshot_20261119_233654

Desktop (please complete the following information):

  • OS: Linux
  • Version 2.0.17

Additional context
Playing Sealed Limited Edition Beta

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.