magefree / magefree/mage

AI misuses swap removal

Open
#12,561 2 comments 0 reactions 0 assignees View on GitHub
AI
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.