mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -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;
|
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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue