forked from External/mage
refactor: improved usage of target pointers
This commit is contained in:
parent
78612ddc91
commit
46d751f996
476 changed files with 548 additions and 563 deletions
|
|
@ -142,7 +142,7 @@ class GraftDistributeCounterEffect extends OneShotEffect {
|
|||
if (sourcePermanent != null) {
|
||||
int numberOfCounters = sourcePermanent.getCounters(game).getCount(CounterType.P1P1);
|
||||
if (numberOfCounters > 0) {
|
||||
Permanent targetCreature = game.getPermanent(targetPointer.getFirst(game, source));
|
||||
Permanent targetCreature = game.getPermanent(getTargetPointer().getFirst(game, source));
|
||||
if (targetCreature != null) {
|
||||
sourcePermanent.removeCounters(CounterType.P1P1.getName(), 1, source, game);
|
||||
targetCreature.addCounters(CounterType.P1P1.createInstance(1), source.getControllerId(), source, game);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue