From 8c3fe81669bf838c16f52c8b2eb0cf738cfd8765 Mon Sep 17 00:00:00 2001 From: tool4EvEr Date: Fri, 8 Oct 2021 18:44:12 +0200 Subject: [PATCH] Allow reordering of multiple attachments --- .../src/main/java/forge/game/ability/effects/AttachEffect.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/forge-game/src/main/java/forge/game/ability/effects/AttachEffect.java b/forge-game/src/main/java/forge/game/ability/effects/AttachEffect.java index e86183c214b..d5302886f02 100644 --- a/forge-game/src/main/java/forge/game/ability/effects/AttachEffect.java +++ b/forge-game/src/main/java/forge/game/ability/effects/AttachEffect.java @@ -5,6 +5,7 @@ import java.util.List; import java.util.Map; import forge.game.Game; +import forge.game.GameActionUtil; import forge.game.GameEntity; import forge.game.GameObject; import forge.game.ability.AbilityKey; @@ -114,6 +115,8 @@ public class AttachEffect extends SpellAbilityEffect { attachToName = attachTo.toString(); } + attachments = (CardCollection) GameActionUtil.orderCardsByTheirOwners(game, attachments, ZoneType.Battlefield, sa); + // If Cast Targets will be checked on the Stack for (final Card attachment : attachments) { String message = Localizer.getInstance().getMessage("lblDoYouWantAttachSourceToTarget", CardTranslation.getTranslatedName(attachment.getName()), attachToName);