[OGW] Fixed that support did add 2 counters to target permanent.

This commit is contained in:
LevelX2 2016-01-01 13:09:35 +01:00
parent 9883eff7b9
commit 54fd8504b1
2 changed files with 6 additions and 2 deletions

View file

@ -88,7 +88,11 @@ public class AddCountersTargetEffect extends OneShotEffect {
if (permanent != null) {
if (counter != null) {
Counter newCounter = counter.copy();
newCounter.add(amount.calculate(game, source, this));
int calculated = amount.calculate(game, source, this);
if (calculated > 0 && newCounter.getCount() > 0) {
newCounter.remove(newCounter.getCount());
}
newCounter.add(calculated);
int before = permanent.getCounters().getCount(counter.getName());
permanent.addCounters(newCounter, game);
int numberAdded = permanent.getCounters().getCount(counter.getName()) - before;

View file

@ -57,7 +57,7 @@ public class SupportEffect extends AddCountersTargetEffect {
}
public SupportEffect(DynamicValue amount) {
super(CounterType.P1P1.createInstance(), new StaticValue(1));
super(CounterType.P1P1.createInstance(0), new StaticValue(1));
this.amountSupportTargets = amount;
this.staticText = setText();
}