add Relic Putrescence (from Scars of Mirrodin)

This commit is contained in:
jendave
2011-08-06 08:30:30 +00:00
parent 6fa7510491
commit 9e1a0f1e8c
3 changed files with 33 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -2971,6 +2971,7 @@ res/cardsfolder/rejuvenate.txt -text svneol=native#text/plain
res/cardsfolder/rejuvenation_chamber.txt -text svneol=native#text/plain res/cardsfolder/rejuvenation_chamber.txt -text svneol=native#text/plain
res/cardsfolder/reki_the_history_of_kamigawa.txt -text svneol=native#text/plain res/cardsfolder/reki_the_history_of_kamigawa.txt -text svneol=native#text/plain
res/cardsfolder/relentless_rats.txt -text svneol=native#text/plain res/cardsfolder/relentless_rats.txt -text svneol=native#text/plain
res/cardsfolder/relic_putrescence.txt -text svneol=native#text/plain
res/cardsfolder/reliquary_tower.txt -text svneol=native#text/plain res/cardsfolder/reliquary_tower.txt -text svneol=native#text/plain
res/cardsfolder/remand.txt -text svneol=native#text/plain res/cardsfolder/remand.txt -text svneol=native#text/plain
res/cardsfolder/reminisce.txt -text svneol=native#text/plain res/cardsfolder/reminisce.txt -text svneol=native#text/plain

View File

@@ -0,0 +1,8 @@
Name:Relic Putrescence
ManaCost:2 B
Types:Enchantment Aura
Text:Whenever enchanted artifact becomes tapped, its controller gets a poison counter.
K:Enchant Artifact Curse
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/relic_putrescence.jpg
End

View File

@@ -218,6 +218,30 @@ public class GameActionUtil {
} }
}//end Blight }//end Blight
/*
* Relic Putrescense - When enchanted artifact becomes tapped,
* controller gets a poison counter.
*/
if(c.isEnchantedBy("Relic Putrescence")) {
final ArrayList<Card> auras = c.getEnchantedBy();
final Card target = c;
for(Card aura:auras) {
if(aura.getName().equals("Relic Putrescence")) {
Ability ability = new Ability(aura, "0") {
@Override
public void resolve() {
if (target.getController().equals(Constant.Player.Human))
AllZone.Human_PoisonCounter.addPoisonCounters(1);
else
AllZone.Computer_PoisonCounter.addPoisonCounters(1);
}
};//Ability
ability.setStackDescription(aura.getName()+" - "+target.getController()+" gets a poison counter.");
AllZone.Stack.add(ability);
}
}
}//end relic putrescence
/* /*
* Psychic Venom - When enchanted land becomes tapped, it deals 2 damage * Psychic Venom - When enchanted land becomes tapped, it deals 2 damage
* to enchanted lands' controller * to enchanted lands' controller