- The AI can now use Animate Wall.

This commit is contained in:
Sloth
2013-02-27 19:13:11 +00:00
parent 74a31e137e
commit 0e10eb9296
3 changed files with 7 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ SVar:AltCost:Cost$ ExileFromHand<1/Card.White> | Description$ You may exile a wh
A:SP$ ChooseColor | Cost$ 3 W | Defined$ You | SubAbility$ ProtectAll | AILogic$ MostProminentHumanControls | StackDescription$ SpellDescription | SpellDescription$ Choose a color. All creatures gain protection from the chosen color until end of turn. A:SP$ ChooseColor | Cost$ 3 W | Defined$ You | SubAbility$ ProtectAll | AILogic$ MostProminentHumanControls | StackDescription$ SpellDescription | SpellDescription$ Choose a color. All creatures gain protection from the chosen color until end of turn.
SVar:ProtectAll:DB$ Effect | StaticAbilities$ ProtectionChosen SVar:ProtectAll:DB$ Effect | StaticAbilities$ ProtectionChosen
SVar:ProtectionChosen:Mode$ Continuous | EffectZone$ Command | Affected$ Creature | AffectedZone$ Battlefield | AddKeyword$ Protection:Card.ChosenColor:Protection from the chosen color | Description$ All creatures gain protection from the chosen color until end of turn. SVar:ProtectionChosen:Mode$ Continuous | EffectZone$ Command | Affected$ Creature | AffectedZone$ Battlefield | AddKeyword$ Protection:Card.ChosenColor:Protection from the chosen color | Description$ All creatures gain protection from the chosen color until end of turn.
SVar:PlayMain1:TRUE SVar:RemAIDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/reverent_mantra.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/reverent_mantra.jpg
SetInfo:MMQ|Rare|http://magiccards.info/scans/en/mm/44.jpg SetInfo:MMQ|Rare|http://magiccards.info/scans/en/mm/44.jpg
Oracle:You may exile a white card from your hand rather than pay Reverent Mantra's mana cost.\nChoose a color. All creatures gain protection from the chosen color until end of turn. Oracle:You may exile a white card from your hand rather than pay Reverent Mantra's mana cost.\nChoose a color. All creatures gain protection from the chosen color until end of turn.

View File

@@ -801,7 +801,7 @@ public class AttachAi extends SpellAbilityAi {
prefList = CardLists.filter(prefList, Predicates.not(Presets.ENCHANTED)); prefList = CardLists.filter(prefList, Predicates.not(Presets.ENCHANTED));
} }
if (!grantingAbilities) { if (!grantingAbilities && keywords.isEmpty()) {
// Probably prefer to Enchant Creatures that Can Attack // Probably prefer to Enchant Creatures that Can Attack
// Filter out creatures that can't Attack or have Defender // Filter out creatures that can't Attack or have Defender
prefList = CardLists.filter(prefList, new Predicate<Card>() { prefList = CardLists.filter(prefList, new Predicate<Card>() {
@@ -1063,6 +1063,10 @@ public class AttachAi extends SpellAbilityAi {
if (!CombatUtil.canBlock(card, true) || card.hasKeyword("CARDNAME can block any number of creatures.")) { if (!CombatUtil.canBlock(card, true) || card.hasKeyword("CARDNAME can block any number of creatures.")) {
return false; return false;
} }
} else if (keyword.equals("CARDNAME can attack as though it didn't have defender.")) {
if (!card.hasKeyword("Defender") || card.hasKeyword("CARDNAME can attack as though it didn't have defender.")) {
return false;
}
} else if (keyword.equals("Shroud") || keyword.equals("Hexproof")) { } else if (keyword.equals("Shroud") || keyword.equals("Hexproof")) {
if (card.hasKeyword("Shroud") || card.hasKeyword("Hexproof")) { if (card.hasKeyword("Shroud") || card.hasKeyword("Hexproof")) {
return false; return false;

View File

@@ -249,6 +249,7 @@ public class Upkeep extends Phase {
}; };
slowtrip.setStackDescription(card + " - Draw a card."); slowtrip.setStackDescription(card + " - Draw a card.");
slowtrip.setDescription(card + " - Draw a card."); slowtrip.setDescription(card + " - Draw a card.");
slowtrip.setActivatingPlayer(player);
game.getStack().addSimultaneousStackEntry(slowtrip); game.getStack().addSimultaneousStackEntry(slowtrip);