mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Fixed AI of Aegis Angel.
This commit is contained in:
@@ -5,7 +5,7 @@ Text:no text
|
||||
PT:5/5
|
||||
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.)
|
||||
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:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/aegis_angel.jpg
|
||||
|
||||
@@ -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 the cost is tapping, don't activate before declare
|
||||
// attack/block
|
||||
|
||||
@@ -674,7 +674,8 @@ public class Target {
|
||||
*/
|
||||
public final boolean canTgtCreature() {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user