mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
- Reveal card tutored with Secret Entrance - Grant hexproof from Throne of the Dead Three until next turn.
This commit is contained in:
parent
8936e1d8b2
commit
419b9774e7
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue