mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
Modified xCount to make Daybreak Coronet scriptable
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -1767,6 +1767,7 @@ res/cardsfolder/d/dawnstrider.txt svneol=native#text/plain
|
||||
res/cardsfolder/d/day_of_destiny.txt svneol=native#text/plain
|
||||
res/cardsfolder/d/day_of_judgment.txt svneol=native#text/plain
|
||||
res/cardsfolder/d/day_of_the_dragons.txt svneol=native#text/plain
|
||||
res/cardsfolder/d/daybreak_coronet.txt -text
|
||||
res/cardsfolder/d/daze.txt svneol=native#text/plain
|
||||
res/cardsfolder/d/dead_iron_sledge.txt svneol=native#text/plain
|
||||
res/cardsfolder/d/deadapult.txt svneol=native#text/plain
|
||||
|
||||
14
res/cardsfolder/d/daybreak_coronet.txt
Normal file
14
res/cardsfolder/d/daybreak_coronet.txt
Normal file
@@ -0,0 +1,14 @@
|
||||
Name:Daybreak Coronet
|
||||
ManaCost:W W
|
||||
Types:Enchantment Aura
|
||||
Text:Enchant creature with another Aura attached to it
|
||||
K:Enchant creature
|
||||
A:SP$ Attach | Cost$ W W | ValidTgts$ Creature.enchanted | 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$AllAurasEnchanting
|
||||
SVar:Rarity:Rare
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/daybreak_coronet.jpg
|
||||
SetInfo:FUT|Rare|http://magiccards.info/scans/en/fut/21.jpg
|
||||
End
|
||||
@@ -2283,6 +2283,14 @@ public class CardFactoryUtil {
|
||||
final String[] l = s.split("/");
|
||||
final String[] m = parseMath(l);
|
||||
|
||||
//count total number of aura enchanting card that aura is attached to
|
||||
if (l[0].contains("AllAurasEnchanting")) {
|
||||
int numAuras = 0;
|
||||
if (c.getEnchanting().size() != 0)
|
||||
numAuras = c.getEnchantingCard().getEnchantedBy().size();
|
||||
return doXMath(numAuras,m,c);
|
||||
}
|
||||
|
||||
//accept straight numbers
|
||||
if (l[0].contains("Number$")) {
|
||||
String number = l[0].replace("Number$", "");
|
||||
|
||||
Reference in New Issue
Block a user