[CMR] Imoti, Celebrant of Bounty - Give Cascade to X spells (fixes #7409)

This commit is contained in:
Daniel Bomar 2021-02-05 10:27:55 -06:00
parent 7d267061d9
commit 25f929d70e
No known key found for this signature in database
GPG key ID: C86C8658F4023918

View file

@ -68,7 +68,7 @@ public class GainAbilitySpellsEffect extends ContinuousEffectImpl {
for (StackObject stackObject : game.getStack()) { for (StackObject stackObject : game.getStack()) {
if (stackObject.isControlledBy(source.getControllerId())) { if (stackObject.isControlledBy(source.getControllerId())) {
Card card = game.getCard(stackObject.getSourceId()); 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)) { if (!card.hasAbility(ability, game)) {
game.getState().addOtherAbility(card, ability); game.getState().addOtherAbility(card, ability);
} }