- Fixed bug from r32304

This commit is contained in:
excessum
2016-10-08 13:45:40 +00:00
parent bdae06573b
commit 4ca1fc3911

View File

@@ -133,9 +133,8 @@ public class AnimateAi extends SpellAbilityAi {
final Card source = sa.getHostCard();
final Game game = aiPlayer.getGame();
final PhaseHandler ph = game.getPhaseHandler();
if (sa.getSubAbility() == null) {
return false; // why is this necessary?
if (sa.getConditions() != null && !sa.getConditions().areMet(sa) && sa.getSubAbility() == null) {
return false; // what is this for?
}
if (!game.getStack().isEmpty() && game.getStack().peekAbility().getApi() == ApiType.Sacrifice) {
return true; // interrupt sacrifice