- Do not waste all mana on animating a single manland when interrupting a sac effect.

This commit is contained in:
Agetian
2017-01-26 17:43:14 +00:00
parent 7226ab7b3d
commit 2db703109d

View File

@@ -137,7 +137,10 @@ public class AnimateAi extends SpellAbilityAi {
return false; // what is this for?
}
if (!game.getStack().isEmpty() && game.getStack().peekAbility().getApi() == ApiType.Sacrifice) {
return true; // interrupt sacrifice
if (!AnimateAi.isAnimatedThisTurn(aiPlayer, source)) {
this.rememberAnimatedThisTurn(aiPlayer, source);
return true; // interrupt sacrifice
}
}
if (!ComputerUtilCost.checkTapTypeCost(aiPlayer, sa.getPayCosts(), source, sa)) {
return false; // prevent crewing with equal or better creatures