From f1ff92801f34987f57c9c2deba90bf5465f6757e Mon Sep 17 00:00:00 2001 From: tool4ever Date: Sun, 15 Sep 2024 10:15:54 +0200 Subject: [PATCH] Fix Undying not triggering when dying from SBA (#6146) --- .../src/main/java/forge/player/HumanPlaySpellAbility.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/forge-gui/src/main/java/forge/player/HumanPlaySpellAbility.java b/forge-gui/src/main/java/forge/player/HumanPlaySpellAbility.java index f9b2b1b3306..0f483287c55 100644 --- a/forge-gui/src/main/java/forge/player/HumanPlaySpellAbility.java +++ b/forge-gui/src/main/java/forge/player/HumanPlaySpellAbility.java @@ -28,7 +28,6 @@ import forge.card.MagicColor; import forge.game.Game; import forge.game.GameActionUtil; import forge.game.GameObject; -import forge.game.ability.AbilityKey; import forge.game.ability.AbilityUtils; import forge.game.ability.ApiType; import forge.game.ability.effects.CharmEffect; @@ -212,7 +211,7 @@ public class HumanPlaySpellAbility { if (skipStack) { AbilityUtils.resolve(ability); // Should unfreeze stack (but if it was a RE with a cause better to let it be handled by that) - if (!ability.isReplacementAbility() || ability.getRootAbility().getReplacingObject(AbilityKey.Cause) == null) { + if (!ability.isReplacementAbility()) { game.getStack().unfreezeStack(); } } else {