mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- A little tweak to the ChangeZoneAi exile any number logic
This commit is contained in:
@@ -1550,13 +1550,15 @@ public class ChangeZoneAi extends SpellAbilityAi {
|
|||||||
} else {
|
} else {
|
||||||
// exclude tokens, they won't come back, and enchanted stuff, since auras will go away
|
// exclude tokens, they won't come back, and enchanted stuff, since auras will go away
|
||||||
if (!sa.hasParam("Mandatory") && origin.contains(ZoneType.Battlefield)) {
|
if (!sa.hasParam("Mandatory") && origin.contains(ZoneType.Battlefield)) {
|
||||||
fetchList = CardLists.filter(fetchList, Presets.NON_TOKEN);
|
|
||||||
fetchList = CardLists.filter(fetchList, new Predicate<Card>() {
|
fetchList = CardLists.filter(fetchList, new Predicate<Card>() {
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(final Card card) {
|
public boolean apply(final Card card) {
|
||||||
if (card.getOwner().isOpponentOf(decider)) {
|
if (card.getOwner().isOpponentOf(decider)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (card.isToken()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (card.isCreature() && ComputerUtilCard.isUselessCreature(decider, card)) {
|
if (card.isCreature() && ComputerUtilCard.isUselessCreature(decider, card)) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user