mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Fixed bug with Counter effects (usually only first worked because of not copying Counter Object correctly and using the same but with amount=0 after first use).
This commit is contained in:
parent
d254b97616
commit
7c608b8b91
2 changed files with 2 additions and 2 deletions
|
@ -53,7 +53,7 @@ public class AddCountersSourceEffect extends OneShotEffect<AddCountersSourceEffe
|
|||
public AddCountersSourceEffect(Counter counter) {
|
||||
super(Outcome.Benefit);
|
||||
this.name = counter.getName();
|
||||
this.counter = counter;
|
||||
this.counter = counter.copy();
|
||||
}
|
||||
|
||||
public AddCountersSourceEffect(final AddCountersSourceEffect effect) {
|
||||
|
|
|
@ -58,7 +58,7 @@ public class AddCountersTargetEffect extends OneShotEffect<AddCountersTargetEffe
|
|||
super(effect);
|
||||
this.amount = effect.amount;
|
||||
this.name = effect.name;
|
||||
this.counter = effect.counter;
|
||||
this.counter = effect.counter.copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue