mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
fix Awaken the Maelstrom
This commit is contained in:
parent
e6e241cfcb
commit
bc99fbfbcd
1 changed files with 3 additions and 2 deletions
|
|
@ -91,6 +91,7 @@ class AwakenTheMaelstromEffect extends OneShotEffect {
|
|||
return false;
|
||||
}
|
||||
makeToken(player, game, source);
|
||||
game.getState().processAction(game);
|
||||
distributeCounters(player, game, source);
|
||||
return true;
|
||||
}
|
||||
|
|
@ -113,10 +114,10 @@ class AwakenTheMaelstromEffect extends OneShotEffect {
|
|||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue