Skip to content

Commit

Permalink
fix Awaken the Maelstrom
Browse files Browse the repository at this point in the history
  • Loading branch information
xenohedron committed Oct 12, 2023
1 parent e6e241c commit bc99fbf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Mage.Sets/src/mage/cards/a/AwakenTheMaelstrom.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public boolean apply(Game game, Ability source) {
return false;
}
makeToken(player, game, source);
game.getState().processAction(game);
distributeCounters(player, game, source);
return true;
}
Expand All @@ -113,10 +114,10 @@ private void distributeCounters(Player player, Game game, Ability source) {
if (game.getBattlefield().count(StaticFilters.FILTER_CONTROLLED_CREATURE, player.getId(), source, game) < 1) {
return;
}
TargetPermanentAmount target = new TargetCreaturePermanentAmount(3);
TargetPermanentAmount target = new TargetCreaturePermanentAmount(3, StaticFilters.FILTER_CONTROLLED_CREATURE);
target.withNotTarget(true);
target.withChooseHint("to distribute counters");
player.choose(outcome, target, source, game);
target.chooseTarget(outcome, player.getId(), source, game);
for (UUID targetId : target.getTargets()) {
Permanent permanent = game.getPermanent(targetId);
if (permanent != null) {
Expand Down

0 comments on commit bc99fbf

Please sign in to comment.