mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
add "TriggeringController" to defined. add Earthlink (from Ice Age)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
10
res/cardsfolder/earthlink.txt
Normal file
10
res/cardsfolder/earthlink.txt
Normal 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
|
||||
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user