mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
Fix special actions going through frozen stack (#8642)
This commit is contained in:
@@ -331,6 +331,12 @@ public class MagicStack /* extends MyObservable */ implements Iterable<SpellAbil
|
||||
}
|
||||
}
|
||||
|
||||
if (sp instanceof AbilityStatic || (sp.isTrigger() && sp.getTrigger().getOverridingAbility() instanceof AbilityStatic)) {
|
||||
AbilityUtils.resolve(sp);
|
||||
// AbilityStatic should do nothing below
|
||||
return;
|
||||
}
|
||||
|
||||
if (si == null && sp.isActivatedAbility() && !sp.isCopied()) {
|
||||
// if not already copied use a fresh instance
|
||||
SpellAbility original = sp;
|
||||
@@ -354,12 +360,6 @@ public class MagicStack /* extends MyObservable */ implements Iterable<SpellAbil
|
||||
addAbilityActivatedThisTurn(sp, source);
|
||||
}
|
||||
|
||||
if (sp instanceof AbilityStatic || (sp.isTrigger() && sp.getTrigger().getOverridingAbility() instanceof AbilityStatic)) {
|
||||
AbilityUtils.resolve(sp);
|
||||
// AbilityStatic should do nothing below
|
||||
return;
|
||||
}
|
||||
|
||||
// The ability is added to stack HERE
|
||||
si = push(sp, si, id);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user