mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48: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 (si == null && sp.isActivatedAbility() && !sp.isCopied()) {
|
||||||
// if not already copied use a fresh instance
|
// if not already copied use a fresh instance
|
||||||
SpellAbility original = sp;
|
SpellAbility original = sp;
|
||||||
@@ -354,12 +360,6 @@ public class MagicStack /* extends MyObservable */ implements Iterable<SpellAbil
|
|||||||
addAbilityActivatedThisTurn(sp, source);
|
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
|
// The ability is added to stack HERE
|
||||||
si = push(sp, si, id);
|
si = push(sp, si, id);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user