mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
added checkStaticAbilities before subAbilities resolve (fixes: Platinum Emperion targeted by Swords to Plowshares)
This commit is contained in:
@@ -1040,11 +1040,13 @@ public class AbilityUtils {
|
|||||||
// every resolving spellAbility will end here
|
// every resolving spellAbility will end here
|
||||||
if (usedStack) {
|
if (usedStack) {
|
||||||
SpellAbility root = sa.getRootAbility();
|
SpellAbility root = sa.getRootAbility();
|
||||||
|
// static abilities will get refreshed from SBE check.
|
||||||
game.getStack().finishResolving(root, false);
|
game.getStack().finishResolving(root, false);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// check conditions
|
|
||||||
|
game.getAction().checkStaticAbilities(); // this will refresh continuous abilities for players and permanents.
|
||||||
AbilityUtils.resolveApiAbility(abSub, usedStack, game);
|
AbilityUtils.resolveApiAbility(abSub, usedStack, game);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user