- A little tweak to the ChangeZoneAi exile any number logic

This commit is contained in:
Michael Kamensky
2021-02-27 10:11:20 +03:00
parent 22139e2c25
commit 2081e9d23a

View File

@@ -1550,13 +1550,15 @@ public class ChangeZoneAi extends SpellAbilityAi {
} else {
// exclude tokens, they won't come back, and enchanted stuff, since auras will go away
if (!sa.hasParam("Mandatory") && origin.contains(ZoneType.Battlefield)) {
fetchList = CardLists.filter(fetchList, Presets.NON_TOKEN);
fetchList = CardLists.filter(fetchList, new Predicate<Card>() {
@Override
public boolean apply(final Card card) {
if (card.getOwner().isOpponentOf(decider)) {
return true;
}
if (card.isToken()) {
return false;
}
if (card.isCreature() && ComputerUtilCard.isUselessCreature(decider, card)) {
return true;