- Better script for Daybreak Coronet

This commit is contained in:
swordshine
2014-02-26 07:35:33 +00:00
parent 5bc21dd200
commit 14a9126933
2 changed files with 12 additions and 4 deletions

View File

@@ -5608,6 +5608,13 @@ public class Card extends GameEntity implements Comparable<Card> {
}
}
}
} else { // EnchantedBy Aura.Other
for (final Card aura : this.getEnchantedBy()){
if (aura.isValid(restriction, sourceController, source)) {
return true;
}
}
return false;
}
}
} else if (property.startsWith("NotEnchantedBy")) {
@@ -6388,6 +6395,10 @@ public class Card extends GameEntity implements Comparable<Card> {
if (!this.isEnchanted()) {
return false;
}
} else if (property.startsWith("enchanted")) {
if (!this.isEnchanted()) {
return false;
}
} else if (property.startsWith("unenchanted")) {
if (this.isEnchanted()) {
return false;

View File

@@ -2,10 +2,7 @@ Name:Daybreak Coronet
ManaCost:W W
Types:Enchantment Aura
K:Enchant creature with another Aura attached to it
A:SP$ Attach | Cost$ W W | ValidTgts$ Creature.enchanted | TgtPrompt$ Select target enchanted creature | AILogic$ Pump
A:SP$ Attach | Cost$ W W | ValidTgts$ Creature.EnchantedBy Aura.Other | TgtPrompt$ Select target enchanted creature | AILogic$ Pump
S:Mode$ Continuous | Affected$ Creature.EnchantedBy | AddPower$ 3 | AddToughness$ 3 | AddKeyword$ First Strike & Vigilance & Lifelink | Description$ Enchanted creature gets +3/+3 and has first strike, vigilance, and lifelink. (Damage dealt by the creature also causes its controller to gain that much life.)
T:Mode$ Always | TriggerZones$ Battlefield | CheckSVar$ X | SVarCompare$ EQ1 | Execute$ TrigRemove | Static$ True
SVar:TrigRemove:AB$ ChangeZone | Cost$ 0 | Origin$ Battlefield | Destination$ Graveyard | Defined$ Self
SVar:X:Count$Valid Aura.AttachedTo Creature.EnchantedBy
SVar:Picture:http://www.wizards.com/global/images/magic/general/daybreak_coronet.jpg
Oracle:Enchant creature with another Aura attached to it\nEnchanted creature gets +3/+3 and has first strike, vigilance, and lifelink. (Damage dealt by the creature also causes its controller to gain that much life.)