mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
* Isochron Scepter - Fixed that not always the correct spell ability was cat for the imprinted card (e.g. overload ability for cards with overload).
This commit is contained in:
parent
d757d87acc
commit
77d783f587
1 changed files with 3 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue