AIPlayerBaka

Changing how the AI selects attackers, considering creatures with evasion
This commit is contained in:
Eduardo MG
2025-04-24 14:13:25 -06:00
parent c109b2118a
commit 9b2f59d64f
2 changed files with 208 additions and 133 deletions

View File

@@ -76,6 +76,7 @@ class AIPlayerBaka: public AIPlayer{
virtual int chooseBlockers();
virtual int canFirstStrikeKill(MTGCardInstance * card, MTGCardInstance *ennemy);
virtual int effectBadOrGood(MTGCardInstance * card, int mode = MODE_PUTINTOPLAY, TargetChooser * tc = NULL);
virtual bool shouldAIForceAttack(MTGCardInstance* card, bool globalAttack);
// returns 1 if the AI algorithm supports a given cost (ex:simple mana cost), 0 otherwise (ex: cost involves Sacrificing a target)
virtual int CanHandleCost(ManaCost * cost, MTGCardInstance * card = NULL);