mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +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() {
|
public SpellAbility getSpellAbility() {
|
||||||
if (spellAbility == null) {
|
if (spellAbility == null) {
|
||||||
for (Ability ability : abilities.getActivatedAbilities(Zone.HAND)) {
|
for (Ability ability : abilities.getActivatedAbilities(Zone.HAND)) {
|
||||||
// name check prevents that alternate casting methods (like "cast [card name] using bestow") are returned here
|
if (ability instanceof SpellAbility
|
||||||
// BUG #1024: Bestow bug
|
&& !((SpellAbility) ability).getSpellAbilityType().equals(SpellAbilityType.BASE_ALTERNATE)) {
|
||||||
//if (ability instanceof SpellAbility && ability.toString().endsWith(getName())) {
|
return spellAbility = (SpellAbility) ability;
|
||||||
if (ability instanceof SpellAbility) {
|
|
||||||
spellAbility = (SpellAbility) ability;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue