Fix Undying not triggering when dying from SBA (#6146)

This commit is contained in:
tool4ever
2024-09-15 10:15:54 +02:00
committed by GitHub
parent 445508d3ab
commit f1ff92801f

View File

@@ -28,7 +28,6 @@ import forge.card.MagicColor;
import forge.game.Game; import forge.game.Game;
import forge.game.GameActionUtil; import forge.game.GameActionUtil;
import forge.game.GameObject; import forge.game.GameObject;
import forge.game.ability.AbilityKey;
import forge.game.ability.AbilityUtils; import forge.game.ability.AbilityUtils;
import forge.game.ability.ApiType; import forge.game.ability.ApiType;
import forge.game.ability.effects.CharmEffect; import forge.game.ability.effects.CharmEffect;
@@ -212,7 +211,7 @@ public class HumanPlaySpellAbility {
if (skipStack) { if (skipStack) {
AbilityUtils.resolve(ability); AbilityUtils.resolve(ability);
// Should unfreeze stack (but if it was a RE with a cause better to let it be handled by that) // 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(); game.getStack().unfreezeStack();
} }
} else { } else {