diff --git a/.gitattributes b/.gitattributes index f85588a9459..83ecd032c9a 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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/reki_the_history_of_kamigawa.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/remand.txt -text svneol=native#text/plain res/cardsfolder/reminisce.txt -text svneol=native#text/plain diff --git a/res/cardsfolder/relic_putrescence.txt b/res/cardsfolder/relic_putrescence.txt new file mode 100644 index 00000000000..5737aa5ca0a --- /dev/null +++ b/res/cardsfolder/relic_putrescence.txt @@ -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 \ No newline at end of file diff --git a/src/forge/GameActionUtil.java b/src/forge/GameActionUtil.java index 5accdf69583..cd3d14c32e9 100644 --- a/src/forge/GameActionUtil.java +++ b/src/forge/GameActionUtil.java @@ -218,6 +218,30 @@ public class GameActionUtil { } }//end Blight + /* + * Relic Putrescense - When enchanted artifact becomes tapped, + * controller gets a poison counter. + */ + if(c.isEnchantedBy("Relic Putrescence")) { + final ArrayList 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 * to enchanted lands' controller