- Fixed AI of Aegis Angel.

This commit is contained in:
Sloth
2012-11-23 17:24:03 +00:00
parent 91145e5ddc
commit 9d7928d4c8
3 changed files with 4 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ Text:no text
PT:5/5 PT:5/5
K:Flying K:Flying
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ When CARDNAME enters the battlefield, another target permanent is indestructible for as long as you control CARDNAME. (Effects that say "destroy" don't destroy that permanent. An indestructible creature can't be destroyed by damage.) T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPump | TriggerDescription$ When CARDNAME enters the battlefield, another target permanent is indestructible for as long as you control CARDNAME. (Effects that say "destroy" don't destroy that permanent. An indestructible creature can't be destroyed by damage.)
SVar:TrigPump:DB$ Pump | ValidTgts$ Permanent.Other | TgtPrompt$ Select another target permanent | KW$ HIDDEN Indestructible | UntilLoseControlOfHost$ True SVar:TrigPump:AB$ Pump | Cost$ 0 | ValidTgts$ Permanent.Other | TgtPrompt$ Select another target permanent | KW$ HIDDEN Indestructible | UntilLoseControlOfHost$ True
SVar:PlayMain1:TRUE SVar:PlayMain1:TRUE
SVar:Rarity:Rare SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/aegis_angel.jpg SVar:Picture:http://www.wizards.com/global/images/magic/general/aegis_angel.jpg

View File

@@ -207,7 +207,7 @@ public class PumpAi extends PumpAiBase {
} }
} }
list = CardLists.getValidCards(list, tgt.getValidTgts(), sa.getActivatingPlayer(), sa.getSourceCard()); list = CardLists.getValidCards(list, tgt.getValidTgts(), ai, sa.getSourceCard());
if (Singletons.getModel().getGame().getStack().size() == 0) { if (Singletons.getModel().getGame().getStack().size() == 0) {
// If the cost is tapping, don't activate before declare // If the cost is tapping, don't activate before declare
// attack/block // attack/block

View File

@@ -674,7 +674,8 @@ public class Target {
*/ */
public final boolean canTgtCreature() { public final boolean canTgtCreature() {
for (final String s : this.validTgts) { for (final String s : this.validTgts) {
if ((s.contains("Creature") || CardUtil.isACreatureType(s)) && !s.contains("nonCreature")) { if ((s.contains("Creature") || CardUtil.isACreatureType(s) || s.startsWith("Permanent"))
&& !s.contains("nonCreature")) {
return true; return true;
} }
} }