Changed type check in applies()

This commit is contained in:
myersn024 2015-03-11 08:04:51 -05:00
parent 1961965e8e
commit 7c16b2ff59

View file

@ -96,7 +96,7 @@ class PowerArtifactCostModificationEffect extends CostModificationEffectImpl {
public boolean applies(Ability abilityToModify, Ability source, Game game) {
Permanent artifact = game.getPermanent(abilityToModify.getSourceId());
if (artifact != null && artifact.getAttachments().contains(source.getSourceId())) {
if (abilityToModify instanceof ActivatedAbility && !(abilityToModify instanceof SpellAbility)) {
if (abilityToModify.getAbilityType().equals(AbilityType.ACTIVATED)) {
return true;
}
}