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

View File

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