mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
Changed type check in applies()
This commit is contained in:
parent
1961965e8e
commit
7c16b2ff59
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue