mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
add Grafted Exoskeleton (from Scars of Mirrodin)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -2670,6 +2670,7 @@ res/cardsfolder/gossamer_chains.txt svneol=native#text/plain
|
||||
res/cardsfolder/gossamer_phantasm.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/gosta_dirk.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/graceful_adept.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/grafted_exoskeleton.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/grafted_skullcap.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/grand_arbiter_augustin_iv.txt -text svneol=native#text/plain
|
||||
res/cardsfolder/grand_coliseum.txt -text svneol=native#text/plain
|
||||
|
||||
10
res/cardsfolder/grafted_exoskeleton.txt
Normal file
10
res/cardsfolder/grafted_exoskeleton.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
Name:Grafted Exoskeleton
|
||||
ManaCost:4
|
||||
Types:Artifact Equipment
|
||||
Text:Equipped creature gets +2/+2 and has infect. (It deals damage to creatures in the form of -1/-1 counters and to players in the form of poison counters.)
|
||||
K:eqPump 2:+2/+2/Infect
|
||||
T:Mode$ Unequip | ValidEquipment$ Card.Self | ValidCard$ Permanent | TriggerZones$ Battlefield | Execute$ TrigSac | TriggerDescription$ Whenever CARDNAME becomes unattached from a permanent, sacrifice that permanent.
|
||||
SVar:TrigSac:AB$Sacrifice | Cost$ 0 | Defined$ You | SacValid$ TriggeredCard
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/grafted_exoskeleton.jpg
|
||||
End
|
||||
@@ -277,6 +277,12 @@ public class AbilityFactory_Sacrifice {
|
||||
if (AllZone.getZone(sa.getSourceCard()).is(Constant.Zone.Battlefield))
|
||||
AllZone.GameAction.sacrifice(sa.getSourceCard());
|
||||
}
|
||||
else if( valid.equals("TriggeredCard")) {
|
||||
Card equipee = (Card)(card.getTriggeringObject("Card"));
|
||||
if(tgts.contains(card.getController()) && AllZoneUtil.isCardInPlay(equipee)) {
|
||||
AllZone.GameAction.sacrifice(equipee);
|
||||
}
|
||||
}
|
||||
else{
|
||||
for(Player p : tgts){
|
||||
|
||||
|
||||
Reference in New Issue
Block a user