add Grafted Exoskeleton (from Scars of Mirrodin)

This commit is contained in:
jendave
2011-08-06 20:09:20 +00:00
parent f75eb8838f
commit 2d095ea258
3 changed files with 17 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -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

View 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

View File

@@ -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){