From 419b9774e7d1f3fe06dd0a7d7531e11652223045 Mon Sep 17 00:00:00 2001 From: Grath <1895280+Grath@users.noreply.github.com> Date: Mon, 6 Feb 2023 09:15:47 -0500 Subject: [PATCH] Fix #9948 (#9951) - Reveal card tutored with Secret Entrance - Grant hexproof from Throne of the Dead Three until next turn. --- .../java/mage/game/command/dungeons/UndercityDungeon.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Mage/src/main/java/mage/game/command/dungeons/UndercityDungeon.java b/Mage/src/main/java/mage/game/command/dungeons/UndercityDungeon.java index 6c289a1509..611044d008 100644 --- a/Mage/src/main/java/mage/game/command/dungeons/UndercityDungeon.java +++ b/Mage/src/main/java/mage/game/command/dungeons/UndercityDungeon.java @@ -14,6 +14,7 @@ import mage.abilities.keyword.HexproofAbility; import mage.cards.Card; import mage.cards.Cards; import mage.cards.CardsImpl; +import mage.constants.Duration; import mage.constants.Outcome; import mage.constants.Zone; import mage.counters.CounterType; @@ -46,7 +47,7 @@ public class UndercityDungeon extends Dungeon { DungeonRoom secretEntrance = new DungeonRoom( "Secret Entrance", new SearchLibraryPutInHandEffect( - new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND) + new TargetCardInLibrary(StaticFilters.FILTER_CARD_BASIC_LAND), true ) ); @@ -159,7 +160,7 @@ class ThroneOfTheDeadThreeEffect extends OneShotEffect { player.moveCards(card, Zone.BATTLEFIELD, source, game); Permanent permanent = game.getPermanent(card.getId()); permanent.addCounters(CounterType.P1P1.createInstance(3), source, game); - game.addEffect(new GainAbilityTargetEffect(HexproofAbility.getInstance()) + game.addEffect(new GainAbilityTargetEffect(HexproofAbility.getInstance(), Duration.UntilYourNextTurn) .setTargetPointer(new FixedTarget(permanent, game)), source); } player.shuffleLibrary(source, game);