Prefer near-term threats for AI card choices#10947
Open
Rauglothgor wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This is a narrow first slice for #6913 and #4282. It reduces two common highest-MV-only AI choices without changing the broader targeting system:
The goal is to avoid early-game choices such as taking or tutoring Avacyn/Iona purely because they have high mana value when lower-MV cards are the actual near-term threat.
Behavior
For single-card discard from an opponent's hand, key cards still win first. If no registered key card applies, the AI checks nonland cards that appear playable soon based on current mana plus a likely land drop, then chooses the best threat from that subset.
For creature tutors to hand, the AI now checks creatures it can cast with available mana sources, then creatures close to castable after a likely land drop, before falling back to the previous best-creature choice.
Scope
This deliberately does not attempt to solve every item in #6913. It does not change Pithing Needle naming, multi-target copied-spell choices, board wipes, or for-each-opponent targeting. Those should remain separate patches because they touch different AI paths.
Validation
Passed locally with temporary WSL Maven/JDK tooling:
Observed result:
BUILD SUCCESS, with 0 checkstyle violations.Notes
No tests are included here. This is meant as a small behavior slice rather than broad AI rewiring.