2ns ability of Sovereigns of Lost Alara scripted. Thank you, Swordshine

This commit is contained in:
Maxmtg
2013-06-02 15:34:47 +00:00
parent bf5bd91e9a
commit 11061585da
3 changed files with 15 additions and 7 deletions

View File

@@ -1,9 +1,11 @@
Name:Sovereigns of Lost Alara
ManaCost:4 W U
Types:Creature Spirit
Text:Whenever a creature you control attacks alone, you may search your library for an Aura card that could enchant that creature, put it onto the battlefield attached to that creature, then shuffle your library.
PT:4/5
K:Exalted
T:Mode$ Attacks | ValidCard$ Creature.YouCtrl | Alone$ True | TriggerZones$ Battlefield | OptionalDecider$ You | Execute$ TrigSearch | TriggerDescription$ Whenever a creature you control attacks alone, you may search your library for an Aura card that could enchant that creature, put it onto the battlefield attached to that creature, then shuffle your library.
SVar:TrigSearch:AB$ Pump | Cost$ 0 | RememberObjects$ TriggeredAttacker | SubAbility$ DBMoveAura
SVar:DBMoveAura:DB$ ChangeZone | Origin$ Library | Destination$ Battlefield | ChangeType$ Aura.CanEnchantRemembered+YouCtrl | AttachedTo$ Remembered | ChangeNum$ 1 | Hidden$ True
SVar:RemRandomDeck:True
SVar:Picture:http://www.wizards.com/global/images/magic/general/sovereigns_of_lost_alara.jpg
Oracle:Exalted (Whenever a creature you control attacks alone, that creature gets +1/+1 until end of turn.)\nWhenever a creature you control attacks alone, you may search your library for an Aura card that could enchant that creature, put it onto the battlefield attached to that creature, then shuffle your library.

View File

@@ -5429,9 +5429,15 @@ public class Card extends GameEntity implements Comparable<Card> {
if (!source.equals(this.enchanting)) {
return false;
}
} else if (property.startsWith("CanEnchantSource")) {
if (!source.canBeEnchantedBy(this)) {
return false;
} else if (property.startsWith("CanEnchant")) {
final String restriction = property.substring(10);
if (restriction.equals("Remembered")) {
for (final Object rem : source.getRemembered()) {
if (!(rem instanceof Card) || !((Card) rem).canBeEnchantedBy(this))
return false;
}
} else if (restriction.equals("Source")) {
if (!source.canBeEnchantedBy(this)) return false;
}
} else if (property.startsWith("CanBeEnchantedBy")) {
if (property.substring(16).equals("Targeted")) {

View File

@@ -305,9 +305,9 @@ public class PhaseHandler implements java.io.Serializable {
CombatUtil.executeExaltedAbility(game, attacker, exaltedMagnitude, card);
}
if ("Sovereigns of Lost Alara".equals(card.getName())) {
CombatUtil.souverignsOfAlara2ndAbility(game, attacker);
}
// if ("Sovereigns of Lost Alara".equals(card.getName())) {
// CombatUtil.souverignsOfAlara2ndAbility(game, attacker);
// }
}
}