added checkStaticAbilities before subAbilities resolve (fixes: Platinum Emperion targeted by Swords to Plowshares)

This commit is contained in:
Maxmtg
2013-05-18 05:40:48 +00:00
parent 1d4b6cc88a
commit ebc75a9e62

View File

@@ -1040,11 +1040,13 @@ public class AbilityUtils {
// every resolving spellAbility will end here
if (usedStack) {
SpellAbility root = sa.getRootAbility();
// static abilities will get refreshed from SBE check.
game.getStack().finishResolving(root, false);
}
return;
}
// check conditions
game.getAction().checkStaticAbilities(); // this will refresh continuous abilities for players and permanents.
AbilityUtils.resolveApiAbility(abSub, usedStack, game);
}