- Fixed AI using Glowing Anemone.

This commit is contained in:
Sloth
2014-08-26 07:14:32 +00:00
parent 9234013d02
commit ee500cb6bd
2 changed files with 17 additions and 14 deletions

View File

@@ -793,20 +793,22 @@ public class ChangeZoneAi extends SpellAbilityAi {
}
}
// When bouncing opponents stuff, don't bounce cards with CMC 0
list = CardLists.filter(list, new Predicate<Card>() {
@Override
public boolean apply(final Card c) {
for (Card aura : c.getEnchantedBy()) {
if (aura.getController().isOpponentOf(ai)) {
return true;
} else {
return false;
}
}
return c.isToken() || c.getCMC() > 0;
}
});
if (!CardLists.getNotType(list, "Land").isEmpty()) {
// When bouncing opponents stuff other than lands, don't bounce cards with CMC 0
list = CardLists.filter(list, new Predicate<Card>() {
@Override
public boolean apply(final Card c) {
for (Card aura : c.getEnchantedBy()) {
if (aura.getController().isOpponentOf(ai)) {
return true;
} else {
return false;
}
}
return c.isToken() || c.getCMC() > 0;
}
});
}
// TODO: Blink permanents with ETB triggers
/*else if (!sa.isTrigger() && SpellAbilityAi.playReusable(ai, sa)) {
aiPermanents = CardLists.filter(aiPermanents, new Predicate<Card>() {

View File

@@ -3,5 +3,6 @@ ManaCost:4
Types:Artifact Equipment
K:Equip Sac<1/Creature>
S:Mode$ Continuous | Affected$ Card.EquippedBy | AddPower$ 4 | AddToughness$ 2 | Description$ Equipped creature gets +4/+2.
SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/demonmail_hauberk.jpg
Oracle:Equipped creature gets +4/+2.\nEquip-Sacrifice a creature.