forked from External/mage
Refactored and fixed AvengerofZendikar
Fixed adding counters effects. Fixed getDynamicText for CreateTokenEffect
This commit is contained in:
parent
4d05d71aa3
commit
ea0bf9e313
5 changed files with 20 additions and 60 deletions
|
|
@ -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 ++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue