fix Awaken the Maelstrom

This commit is contained in:
xenohedron 2023-10-10 23:22:28 -04:00
parent e6e241cfcb
commit bc99fbfbcd

View file

@ -91,6 +91,7 @@ class AwakenTheMaelstromEffect extends OneShotEffect {
return false; return false;
} }
makeToken(player, game, source); makeToken(player, game, source);
game.getState().processAction(game);
distributeCounters(player, game, source); distributeCounters(player, game, source);
return true; return true;
} }
@ -113,10 +114,10 @@ class AwakenTheMaelstromEffect extends OneShotEffect {
if (game.getBattlefield().count(StaticFilters.FILTER_CONTROLLED_CREATURE, player.getId(), source, game) < 1) { if (game.getBattlefield().count(StaticFilters.FILTER_CONTROLLED_CREATURE, player.getId(), source, game) < 1) {
return; return;
} }
TargetPermanentAmount target = new TargetCreaturePermanentAmount(3); TargetPermanentAmount target = new TargetCreaturePermanentAmount(3, StaticFilters.FILTER_CONTROLLED_CREATURE);
target.withNotTarget(true); target.withNotTarget(true);
target.withChooseHint("to distribute counters"); target.withChooseHint("to distribute counters");
player.choose(outcome, target, source, game); target.chooseTarget(outcome, player.getId(), source, game);
for (UUID targetId : target.getTargets()) { for (UUID targetId : target.getTargets()) {
Permanent permanent = game.getPermanent(targetId); Permanent permanent = game.getPermanent(targetId);
if (permanent != null) { if (permanent != null) {