From 77d783f58724c15194b08bb913c1237ac2e06db1 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 7 Sep 2015 17:32:49 +0200 Subject: [PATCH] * Isochron Scepter - Fixed that not always the correct spell ability was cat for the imprinted card (e.g. overload ability for cards with overload). --- Mage/src/mage/cards/CardImpl.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Mage/src/mage/cards/CardImpl.java b/Mage/src/mage/cards/CardImpl.java index 107aca5449..ee05eb447b 100644 --- a/Mage/src/mage/cards/CardImpl.java +++ b/Mage/src/mage/cards/CardImpl.java @@ -296,11 +296,9 @@ public abstract class CardImpl extends MageObjectImpl implements Card { public SpellAbility getSpellAbility() { if (spellAbility == null) { for (Ability ability : abilities.getActivatedAbilities(Zone.HAND)) { - // name check prevents that alternate casting methods (like "cast [card name] using bestow") are returned here - // BUG #1024: Bestow bug - //if (ability instanceof SpellAbility && ability.toString().endsWith(getName())) { - if (ability instanceof SpellAbility) { - spellAbility = (SpellAbility) ability; + if (ability instanceof SpellAbility + && !((SpellAbility) ability).getSpellAbilityType().equals(SpellAbilityType.BASE_ALTERNATE)) { + return spellAbility = (SpellAbility) ability; } } }