mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 11:18:01 +00:00
2ns ability of Sovereigns of Lost Alara scripted. Thank you, Swordshine
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -5429,10 +5429,16 @@ public class Card extends GameEntity implements Comparable<Card> {
|
||||
if (!source.equals(this.enchanting)) {
|
||||
return false;
|
||||
}
|
||||
} else if (property.startsWith("CanEnchantSource")) {
|
||||
if (!source.canBeEnchantedBy(this)) {
|
||||
} 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")) {
|
||||
for (final SpellAbility sa : source.getCharacteristics().getSpellAbility()) {
|
||||
|
||||
@@ -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);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user