- Added Thief of Blood.

This commit is contained in:
Sloth
2015-11-24 12:54:05 +00:00
parent 57a2d2423f
commit 806d82ebc0
3 changed files with 19 additions and 0 deletions

View File

@@ -57,10 +57,12 @@ public class CountersRemoveAllEffect extends SpellAbilityEffect {
cards = CardLists.filterControlledBy(cards, pl);
}
int numberRemoved = 0;
for (final Card tgtCard : cards) {
if (sa.hasParam("AllCounterTypes")) {
Set<CounterType> types = tgtCard.getCounters().keySet();
for(CounterType ct : types) {
numberRemoved += tgtCard.getCounters(ct);
tgtCard.subtractCounter(ct, tgtCard.getCounters(ct));
}
//tgtCard.getCounters().clear();
@@ -72,5 +74,8 @@ public class CountersRemoveAllEffect extends SpellAbilityEffect {
tgtCard.subtractCounter(CounterType.valueOf(type), counterAmount);
}
if (sa.hasParam("RememberAmount")) {
sa.getHostCard().setChosenNumber(numberRemoved);
}
}
}