AI misuses swap removal
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 940
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 160
Description
Swap removal is a spell or ability that functions as removal but gives the victim something beneficial (examples include [[Generous Gift]], [[Resculpt]], [[Beast Within]], etc). Currently the AI is very consistently casting Generous Gift on its own lands, misunderstanding the upside of creating a 3/3 to be the strength of the card.
Potential fix could be writing `this.getSpellAbility().addCustomOutcome(Outcome.DestroyPermanent);` in the code for common swap removal cards so it uses them as intended.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the implementations of Generous Gift, Resculpt, and Beast Within, then inspect how their spell abilities are configured for AI evaluation. Compare the existing behavior with the proposed DestroyPermanent outcome. Done means swap-removal cards are no longer consistently cast on the AI's own lands and are used as intended.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- ai, game-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100