mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
add Relic Putrescence (from Scars of Mirrodin)
This commit is contained in:
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -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
|
||||
|
||||
8
res/cardsfolder/relic_putrescence.txt
Normal file
8
res/cardsfolder/relic_putrescence.txt
Normal 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
|
||||
@@ -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<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
|
||||
* to enchanted lands' controller
|
||||
|
||||
Reference in New Issue
Block a user