From 6380e80a5e6e4144e73cf84107f10539ebcd35a0 Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Tue, 27 Oct 2020 13:49:07 -0500 Subject: [PATCH] Fix adventures not being castable with Omniscience --- .../continuous/CastFromHandWithoutPayingManaCostEffect.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/abilities/effects/common/continuous/CastFromHandWithoutPayingManaCostEffect.java b/Mage/src/main/java/mage/abilities/effects/common/continuous/CastFromHandWithoutPayingManaCostEffect.java index a220a26a76..1b2055f183 100644 --- a/Mage/src/main/java/mage/abilities/effects/common/continuous/CastFromHandWithoutPayingManaCostEffect.java +++ b/Mage/src/main/java/mage/abilities/effects/common/continuous/CastFromHandWithoutPayingManaCostEffect.java @@ -7,6 +7,7 @@ import mage.abilities.condition.Condition; import mage.abilities.condition.common.SourceIsSpellCondition; import mage.abilities.costs.AlternativeCostSourceAbility; import mage.abilities.effects.ContinuousEffectImpl; +import mage.cards.AdventureCardSpell; import mage.cards.Card; import mage.cards.SplitCardHalf; import mage.constants.*; @@ -87,7 +88,7 @@ enum IsBeingCastFromHandCondition implements Condition { @Override public boolean apply(Game game, Ability source) { MageObject object = game.getObject(source.getSourceId()); - if (object instanceof SplitCardHalf) { + if (object instanceof SplitCardHalf || object instanceof AdventureCardSpell) { UUID splitCardId = ((Card) object).getMainCard().getId(); object = game.getObject(splitCardId); }