- Fixed AI using Man-o'-War.

This commit is contained in:
Sloth
2013-03-14 08:24:50 +00:00
parent a5f7855e03
commit 5e687f98b9
2 changed files with 3 additions and 2 deletions

View File

@@ -745,7 +745,7 @@ public class ChangeZoneAi extends SpellAbilityAi {
}
}
// Blink permanents with ETB triggers
else if (SpellAbilityAi.playReusable(ai, sa)) {
else if (!sa.isTrigger() && SpellAbilityAi.playReusable(ai, sa)) {
aiPermanents = CardLists.filter(aiPermanents, new Predicate<Card>() {
@Override
public boolean apply(final Card c) {
@@ -755,7 +755,7 @@ public class ChangeZoneAi extends SpellAbilityAi {
// counters TODO check good and
// bad counters
// checks only if there is a dangerous ETB effect
return SpellPermanent.checkETBEffects(c, ai);
return !c.equals(sa.getSourceCard()) && SpellPermanent.checkETBEffects(c, ai);
}
});
if (!aiPermanents.isEmpty()) {