From 601fb525a814e86129dccab107370ac0956619c5 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 20 Jul 2020 22:48:07 +0200 Subject: [PATCH] * Enigmatic Incarnation - Added process action after the sacrifice (fixes #6250). --- .../src/mage/cards/e/EnigmaticIncarnation.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Mage.Sets/src/mage/cards/e/EnigmaticIncarnation.java b/Mage.Sets/src/mage/cards/e/EnigmaticIncarnation.java index 1270759484..d08212116b 100644 --- a/Mage.Sets/src/mage/cards/e/EnigmaticIncarnation.java +++ b/Mage.Sets/src/mage/cards/e/EnigmaticIncarnation.java @@ -1,5 +1,6 @@ package mage.cards.e; +import java.util.UUID; import mage.abilities.Ability; import mage.abilities.common.BeginningOfEndStepTriggeredAbility; import mage.abilities.effects.OneShotEffect; @@ -22,8 +23,6 @@ import mage.players.Player; import mage.target.TargetPermanent; import mage.target.common.TargetCardInLibrary; -import java.util.UUID; - /** * @author TheElk801 */ @@ -59,10 +58,10 @@ class EnigmaticIncarnationEffect extends OneShotEffect { EnigmaticIncarnationEffect() { super(Outcome.Benefit); - staticText = "you may sacrifice another enchantment. If you do, " + - "search your library for a creature card with converted mana cost " + - "equal to 1 plus the sacrificed enchantment's converted mana cost, " + - "put that card onto the battlefield, then shuffle your library."; + staticText = "you may sacrifice another enchantment. If you do, " + + "search your library for a creature card with converted mana cost " + + "equal to 1 plus the sacrificed enchantment's converted mana cost, " + + "put that card onto the battlefield, then shuffle your library."; } private EnigmaticIncarnationEffect(final EnigmaticIncarnationEffect effect) { @@ -88,6 +87,7 @@ class EnigmaticIncarnationEffect extends OneShotEffect { if (permanent == null) { return false; } + game.getState().processAction(game); int cmc = permanent.getConvertedManaCost(); if (!permanent.sacrifice(source.getSourceId(), game)) { return false; @@ -96,4 +96,4 @@ class EnigmaticIncarnationEffect extends OneShotEffect { filterCard.add(new ConvertedManaCostPredicate(ComparisonType.EQUAL_TO, cmc + 1)); return new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(filterCard)).apply(game, source); } -} \ No newline at end of file +}