Refactored and fixed AvengerofZendikar

Fixed adding counters effects.
Fixed getDynamicText for CreateTokenEffect
This commit is contained in:
North 2011-06-26 20:13:11 +03:00
parent 4d05d71aa3
commit ea0bf9e313
5 changed files with 20 additions and 60 deletions

View file

@ -63,13 +63,13 @@ public class AddCountersTargetEffect extends OneShotEffect<AddCountersTargetEffe
Permanent permanent = game.getPermanent(uuid);
if (permanent != null) {
if (counter != null) {
permanent.addCounters(counter);
permanent.addCounters(counter.copy());
affectedTargets ++;
}
} else {
Player player = game.getPlayer(uuid);
if (player != null) {
player.getCounters().addCounter(counter);
player.getCounters().addCounter(counter.copy());
affectedTargets ++;
}
}