mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Cleanup check for Mishra, Tamer of Mak Fawa
This commit is contained in:
@@ -782,15 +782,9 @@ public class AiController {
|
||||
return AiPlayDecision.CantAfford;
|
||||
}
|
||||
}
|
||||
if (wardCost.hasSpecificCostType(CostPayLife.class)) {
|
||||
int lifeToPay = wardCost.getCostPartByType(CostPayLife.class).convertAmount();
|
||||
if (lifeToPay > player.getLife() || (lifeToPay == player.getLife() && !player.cantLoseForZeroOrLessLife())) {
|
||||
return AiPlayDecision.CantAfford;
|
||||
}
|
||||
}
|
||||
if (wardCost.hasSpecificCostType(CostDiscard.class)
|
||||
&& wardCost.getCostPartByType(CostDiscard.class).convertAmount() > player.getCardsIn(ZoneType.Hand).size()) {
|
||||
return AiPlayDecision.CantAfford;
|
||||
SpellAbilityAi topAI = new SpellAbilityAi() {};
|
||||
if (!topAI.willPayCosts(player, sa , wardCost, host)) {
|
||||
return AiPlayDecision.CostNotAcceptable;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user