mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 21:02:08 -08:00
followup fix for Disorder in the Court
This commit is contained in:
parent
8f9359d856
commit
a516105899
1 changed files with 8 additions and 7 deletions
|
|
@ -86,15 +86,16 @@ class DisorderInTheCourtEffect extends OneShotEffect {
|
|||
.map(game::getPermanent)
|
||||
.filter(Objects::nonNull)
|
||||
.collect(Collectors.toCollection(LinkedHashSet::new));
|
||||
if (toExile.isEmpty()) {
|
||||
return false;
|
||||
if (!toExile.isEmpty()) {
|
||||
controller.moveCardsToExile(toExile, source, game, true, CardUtil.getExileZoneId(game, source), CardUtil.getSourceName(game, source));
|
||||
game.getState().processAction(game);
|
||||
}
|
||||
controller.moveCardsToExile(toExile, source, game, true, CardUtil.getExileZoneId(game, source), CardUtil.getSourceName(game, source));
|
||||
game.getState().processAction(game);
|
||||
new InvestigateEffect(ManacostVariableValue.REGULAR).apply(game, source);
|
||||
Effect effect = new ReturnToBattlefieldUnderOwnerControlTargetEffect(true, true);
|
||||
effect.setTargetPointer(new FixedTargets(new CardsImpl(toExile), game));
|
||||
game.addDelayedTriggeredAbility(new AtTheBeginOfNextEndStepDelayedTriggeredAbility(effect), source);
|
||||
if (!toExile.isEmpty()) {
|
||||
Effect effect = new ReturnToBattlefieldUnderOwnerControlTargetEffect(true, true);
|
||||
effect.setTargetPointer(new FixedTargets(new CardsImpl(toExile), game));
|
||||
game.addDelayedTriggeredAbility(new AtTheBeginOfNextEndStepDelayedTriggeredAbility(effect), source);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue