ChangeZoneAllAi: add more check for mandatory

This commit is contained in:
Hanmac
2016-11-10 18:19:39 +00:00
parent e7f7ce2d91
commit b7beb6612e

View File

@@ -332,6 +332,10 @@ public class ChangeZoneAllAi extends SpellAbilityAi {
}
}
} else if (origin.equals(ZoneType.Battlefield)) {
// if mandatory, no need to evaluate
if (mandatory) {
return true;
}
// this statement is assuming the AI is trying to use this spell offensively
// if the AI is using it defensively, then something else needs to occur
// if only creatures are affected evaluate both lists and pass only