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:
magenoxx 2011-05-15 15:30:24 +04:00
parent d254b97616
commit 7c608b8b91
2 changed files with 2 additions and 2 deletions

View file

@ -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) {

View file

@ -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