- Added AEther Snap.

This commit is contained in:
Sloth
2012-12-06 14:28:18 +00:00
parent 1810891786
commit 978323745f
3 changed files with 18 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -114,6 +114,7 @@ res/cardsfolder/a/aether_membrane.txt svneol=native#text/plain
res/cardsfolder/a/aether_mutation.txt svneol=native#text/plain res/cardsfolder/a/aether_mutation.txt svneol=native#text/plain
res/cardsfolder/a/aether_rift.txt -text res/cardsfolder/a/aether_rift.txt -text
res/cardsfolder/a/aether_shockwave.txt svneol=native#text/plain res/cardsfolder/a/aether_shockwave.txt svneol=native#text/plain
res/cardsfolder/a/aether_snap.txt -text
res/cardsfolder/a/aether_spellbomb.txt svneol=native#text/plain res/cardsfolder/a/aether_spellbomb.txt svneol=native#text/plain
res/cardsfolder/a/aether_sting.txt svneol=native#text/plain res/cardsfolder/a/aether_sting.txt svneol=native#text/plain
res/cardsfolder/a/aether_storm.txt -text svneol=unset#text/plain res/cardsfolder/a/aether_storm.txt -text svneol=unset#text/plain

View File

@@ -0,0 +1,13 @@
Name:AEther Snap
ManaCost:3 B B
Types:Sorcery
Text:no text
A:SP$ RemoveCounterAll | Cost$ 3 B B | ValidCards$ Permanent | AllCounterTypes$ True | StackDescription$ SpellDescription | SubAbility$ DBRemove | SpellDescription$ Remove all counters from all permanents and exile all tokens.
SVar:DBRemove:DB$ ChangeZoneAll | ChangeType$ Card.token | Origin$ Battlefield | Destination$ Exile
SVar:RemAIDeck:True
SVar:RemRandomDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/aether_snap.jpg
SetInfo:DST|Rare|http://magiccards.info/scans/en/ds/37.jpg
Oracle:Remove all counters from all permanents and exile all tokens.
End

View File

@@ -58,6 +58,10 @@ public class CountersRemoveAllEffect extends SpellEffect {
} }
for (final Card tgtCard : cards) { for (final Card tgtCard : cards) {
if (sa.hasParam("AllCounterTypes")) {
tgtCard.getCounters().clear();
continue;
}
if (sa.hasParam("AllCounters")) { if (sa.hasParam("AllCounters")) {
counterAmount = tgtCard.getCounters(CounterType.valueOf(type)); counterAmount = tgtCard.getCounters(CounterType.valueOf(type));
} }