SpellAbility fixed some changes

This commit is contained in:
Hanmac
2018-03-07 07:04:00 +01:00
parent 65d65c9e5f
commit b88365e475

View File

@@ -1495,10 +1495,7 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
return true; return true;
} }
SpellAbility p = getParent(); SpellAbility p = getParent();
if (p != null) { return p != null && p.isTargeting(o);
return p.isTargeting(o);
}
return false;
} }
// Takes one argument like Permanent.Blue+withFlying // Takes one argument like Permanent.Blue+withFlying
@@ -1519,7 +1516,7 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
} }
} }
else if (incR[0].equals("Activated")) { else if (incR[0].equals("Activated")) {
if (!(this instanceof AbilityActivated) && !(root instanceof AbilityActivated)) { if (!(root instanceof AbilityActivated)) {
return false; return false;
} }
} }