- Reveal card tutored with Secret Entrance
- Grant hexproof from Throne of the Dead Three until next turn.
This commit is contained in:
Grath 2023-02-06 09:15:47 -05:00 committed by GitHub
parent 8936e1d8b2
commit 419b9774e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);