diff --git a/Mage/src/main/java/mage/abilities/effects/GainAbilitySpellsEffect.java b/Mage/src/main/java/mage/abilities/effects/GainAbilitySpellsEffect.java index ecc9cf6220..995919c5a9 100644 --- a/Mage/src/main/java/mage/abilities/effects/GainAbilitySpellsEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/GainAbilitySpellsEffect.java @@ -68,7 +68,7 @@ public class GainAbilitySpellsEffect extends ContinuousEffectImpl { for (StackObject stackObject : game.getStack()) { if (stackObject.isControlledBy(source.getControllerId())) { Card card = game.getCard(stackObject.getSourceId()); - if (card != null && filter.match(card, game)) { + if (card != null && filter.match(stackObject, game)) { if (!card.hasAbility(ability, game)) { game.getState().addOtherAbility(card, ability); }