From 25f929d70e09a9940b71492a1694222c82b63445 Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Fri, 5 Feb 2021 10:27:55 -0600 Subject: [PATCH] [CMR] Imoti, Celebrant of Bounty - Give Cascade to X spells (fixes #7409) --- .../java/mage/abilities/effects/GainAbilitySpellsEffect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }