diff --git a/.gitattributes b/.gitattributes index b3fd1a84bc9..00cca68e4f8 100644 --- a/.gitattributes +++ b/.gitattributes @@ -2025,6 +2025,7 @@ res/cardsfolder/c/corpse_traders.txt -text res/cardsfolder/c/corpsehatch.txt svneol=native#text/plain res/cardsfolder/c/corpsejack_menace.txt -text res/cardsfolder/c/corpulent_corpse.txt svneol=native#text/plain +res/cardsfolder/c/corrosion.txt -text res/cardsfolder/c/corrosive_gale.txt svneol=native#text/plain res/cardsfolder/c/corrosive_mentor.txt svneol=native#text/plain res/cardsfolder/c/corrupt.txt svneol=native#text/plain diff --git a/res/cardsfolder/c/corrosion.txt b/res/cardsfolder/c/corrosion.txt new file mode 100644 index 00000000000..a6cea3af5aa --- /dev/null +++ b/res/cardsfolder/c/corrosion.txt @@ -0,0 +1,14 @@ +Name:Corrosion +ManaCost:1 B R +Types:Enchantment +K:Cumulative upkeep:1 +T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigCorrode | TriggerDescription$ At the beginning of your upkeep, put a rust counter on each artifact target opponent controls. Then destroy each artifact with converted mana cost less than or equal to the number of rust counters on it. Artifacts destroyed this way can't be regenerated. +SVar:TrigCorrode:DB$ PutCounterAll | ValidCards$ Artifact | CounterType$ RUST | CounterNum$ 1 | ValidTgts$ Opponent | SubAbility$ DBDestroyAllRusted +SVar:DBDestroyAllRusted:DB$ RepeatEach | RepeatCards$ Artifact | RepeatSubAbility$ DBDestroyRusted +SVar:DBDestroyRusted:DB$ Destroy | References$ RememberedCMC,X | Defined$ Remembered | ConditionCheckSVar$ RememberedCMC | ConditionSVarCompare$ GEX | NoRegen$ True +SVar:RememberedCMC:Remembered$CardCounters.RUST +SVar:X:Remembered$CardManaCost +T:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.Self | Execute$ TrigWipeCounters | TriggerDescription$ When CARDNAME leaves the battlefield, remove all rust counters from all permanents. +SVar:TrigWipeCounters:DB$ RemoveCounterAll | Cost$ 3 B B | ValidCards$ Permanent | AllCounterTypes$ True +Oracle:Cumulative upkeep {1} (At the beginning of your upkeep, put an age counter on this permanent, then sacrifice it unless you pay its upkeep cost for each age counter on it.)\nAt the beginning of your upkeep, put a rust counter on each artifact target opponent controls. Then destroy each artifact with converted mana cost less than or equal to the number of rust counters on it. Artifacts destroyed this way can't be regenerated.\nWhen Corrosion leaves the battlefield, remove all rust counters from all permanents. +SetInfo:VIS Rare \ No newline at end of file diff --git a/src/main/java/forge/CounterType.java b/src/main/java/forge/CounterType.java index a32e592af93..cc9b05fba95 100644 --- a/src/main/java/forge/CounterType.java +++ b/src/main/java/forge/CounterType.java @@ -186,6 +186,8 @@ public enum CounterType { QUEST(), + RUST(), + SCREAM(), SCROLL(),