- Fixed static abilities getting checked by triggers (SpellAbilityCast, etc.).

This commit is contained in:
Sloth
2011-12-19 09:37:48 +00:00
parent 1b8850f25c
commit 5328d08dda

View File

@@ -673,7 +673,7 @@ public class MagicStack extends MyObservable {
// Copied spells aren't cast
// per se so triggers shouldn't
// run for them.
if (!sp.getSourceCard().isCopiedSpell()) {
if (!sp.getSourceCard().isCopiedSpell() && !(sp instanceof AbilityStatic)) {
// Run SpellAbilityCast triggers
final HashMap<String, Object> runParams = new HashMap<String, Object>();
runParams.put("Cost", sp.getPayCosts());