add "TriggeringController" to defined. add Earthlink (from Ice Age)

This commit is contained in:
jendave
2011-08-06 16:03:43 +00:00
parent f63149209c
commit c78d1c1c3c
3 changed files with 16 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -1556,6 +1556,7 @@ res/cardsfolder/earthbind.txt -text svneol=native#text/plain
res/cardsfolder/earthblighter.txt -text svneol=native#text/plain
res/cardsfolder/earthcraft.txt -text svneol=native#text/plain
res/cardsfolder/earthen_goo.txt -text svneol=native#text/plain
res/cardsfolder/earthlink.txt -text svneol=native#text/plain
res/cardsfolder/earthquake.txt -text svneol=native#text/plain
res/cardsfolder/eastern_paladin.txt -text svneol=native#text/plain
res/cardsfolder/eater_of_days.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,10 @@
Name:Earthlink
ManaCost:3 B R G
Types:Enchantment
Text:no text
K:At the beginning of your upkeep, sacrifice CARDNAME unless you pay 2
T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Graveyard | ValidCard$ Creature | Execute$ TrigSac | TriggerDescription$ Whenever a creature is put into a graveyard from the battlefield, that creature's controller sacrifices a land.
SVar:TrigSac:AB$Sacrifice | Cost$ 0 | SacValid$ Land | Defined$ TriggeringController
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/earthlink.jpg
End

View File

@@ -726,6 +726,11 @@ public class AbilityFactory {
players.add(p);
}
}
else if (defined.equals("TriggeringController")){
Player p = sa.getTriggeringCard().getController();
if (!players.contains(p))
players.add(p);
}
else{
if (defined.equals("You") || defined.equals("Each"))
players.add(sa.getActivatingPlayer());