fixed Call of the Death-Dweller ability counter order

This commit is contained in:
Evan Kranzler 2020-04-23 19:54:33 -04:00
parent 7f32ea0be2
commit 862cdf5420

View file

@ -93,21 +93,21 @@ class CallOfTheDeathDwellerEffect extends OneShotEffect {
if (predicates.isEmpty()) { if (predicates.isEmpty()) {
return false; return false;
} }
FilterPermanent filter = new FilterPermanent("creature to put a menace counter on"); FilterPermanent filter = new FilterPermanent("creature to put a deathtouch counter on");
filter.add(Predicates.or(predicates)); filter.add(Predicates.or(predicates));
Target target = new TargetPermanent(0, 1, filter, true); Target target = new TargetPermanent(0, 1, filter, true);
if (player.choose(outcome, target, source.getSourceId(), game)) { if (player.choose(outcome, target, source.getSourceId(), game)) {
Permanent permanent = game.getPermanent(target.getFirstTarget()); Permanent permanent = game.getPermanent(target.getFirstTarget());
if (permanent != null) { if (permanent != null) {
permanent.addCounters(CounterType.MENACE.createInstance(), source, game); permanent.addCounters(CounterType.DEATHTOUCH.createInstance(), source, game);
} }
} }
filter.setMessage("creature to put a deathtouch counter on"); filter.setMessage("creature to put a menace counter on");
target = new TargetPermanent(0, 1, filter, true); target = new TargetPermanent(0, 1, filter, true);
if (player.choose(outcome, target, source.getSourceId(), game)) { if (player.choose(outcome, target, source.getSourceId(), game)) {
Permanent permanent = game.getPermanent(target.getFirstTarget()); Permanent permanent = game.getPermanent(target.getFirstTarget());
if (permanent != null) { if (permanent != null) {
permanent.addCounters(CounterType.DEATHTOUCH.createInstance(), source, game); permanent.addCounters(CounterType.MENACE.createInstance(), source, game);
} }
} }
return true; return true;