mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
[OGW] Fixed that support did add 2 counters to target permanent.
This commit is contained in:
parent
9883eff7b9
commit
54fd8504b1
2 changed files with 6 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue