Refactored method in GilderBairn to not always return the same value.

This commit is contained in:
Danny Plenge 2018-03-20 11:58:10 +01:00
parent 5096410aec
commit a490f9e468

View file

@ -95,13 +95,12 @@ class GilderBairnEffect extends OneShotEffect {
@Override
public boolean apply(Game game, Ability source) {
Permanent target = game.getPermanent(source.getFirstTarget());
if (target == null) {
return false;
}
if (target != null) {
for (Counter counter : target.getCounters(game).values()) {
Counter newCounter = new Counter(counter.getName(), counter.getCount());
target.addCounters(newCounter, source, game);
}
}
return false;
}
}