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
|
Name:Sovereigns of Lost Alara
|
||||||
ManaCost:4 W U
|
ManaCost:4 W U
|
||||||
Types:Creature Spirit
|
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
|
PT:4/5
|
||||||
K:Exalted
|
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:RemRandomDeck:True
|
||||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/sovereigns_of_lost_alara.jpg
|
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.
|
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,9 +5429,15 @@ public class Card extends GameEntity implements Comparable<Card> {
|
|||||||
if (!source.equals(this.enchanting)) {
|
if (!source.equals(this.enchanting)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else if (property.startsWith("CanEnchantSource")) {
|
} else if (property.startsWith("CanEnchant")) {
|
||||||
if (!source.canBeEnchantedBy(this)) {
|
final String restriction = property.substring(10);
|
||||||
return false;
|
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")) {
|
} else if (property.startsWith("CanBeEnchantedBy")) {
|
||||||
if (property.substring(16).equals("Targeted")) {
|
if (property.substring(16).equals("Targeted")) {
|
||||||
|
|||||||
@@ -305,9 +305,9 @@ public class PhaseHandler implements java.io.Serializable {
|
|||||||
CombatUtil.executeExaltedAbility(game, attacker, exaltedMagnitude, card);
|
CombatUtil.executeExaltedAbility(game, attacker, exaltedMagnitude, card);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ("Sovereigns of Lost Alara".equals(card.getName())) {
|
// if ("Sovereigns of Lost Alara".equals(card.getName())) {
|
||||||
CombatUtil.souverignsOfAlara2ndAbility(game, attacker);
|
// CombatUtil.souverignsOfAlara2ndAbility(game, attacker);
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user