mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38: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;
|
return AiPlayDecision.CantAfford;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (wardCost.hasSpecificCostType(CostPayLife.class)) {
|
SpellAbilityAi topAI = new SpellAbilityAi() {};
|
||||||
int lifeToPay = wardCost.getCostPartByType(CostPayLife.class).convertAmount();
|
if (!topAI.willPayCosts(player, sa , wardCost, host)) {
|
||||||
if (lifeToPay > player.getLife() || (lifeToPay == player.getLife() && !player.cantLoseForZeroOrLessLife())) {
|
return AiPlayDecision.CostNotAcceptable;
|
||||||
return AiPlayDecision.CantAfford;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (wardCost.hasSpecificCostType(CostDiscard.class)
|
|
||||||
&& wardCost.getCostPartByType(CostDiscard.class).convertAmount() > player.getCardsIn(ZoneType.Hand).size()) {
|
|
||||||
return AiPlayDecision.CantAfford;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user