diff --git a/res/cards.txt b/res/cards.txt index e7c89b466c5..d37a594b797 100644 --- a/res/cards.txt +++ b/res/cards.txt @@ -1,3 +1,9 @@ +Deglamer +1 G +Instant +Choose target artifact or enchantment. Its owner shuffles it into his or her library. +spBounceTgt:Artifact,Enchantment:ShuffleIntoLibrary + Celestial Purge 1 W Instant diff --git a/src/forge/CardFactory.java b/src/forge/CardFactory.java index c01f3dc867d..a2cc4b788ce 100644 --- a/src/forge/CardFactory.java +++ b/src/forge/CardFactory.java @@ -2236,6 +2236,10 @@ public class CardFactory implements NewConstants { && CardFactoryUtil.canTarget(card, getTargetCard())) { if(getTargetCard().isToken()) AllZone.getZone(getTargetCard()).remove(getTargetCard()); else { if(Destination.equals("TopofLibrary")) AllZone.GameAction.moveToTopOfLibrary(getTargetCard()); + else if(Destination.equals("ShuffleIntoLibrary")) { + AllZone.GameAction.moveToTopOfLibrary(getTargetCard()); + AllZone.GameAction.shuffle(getTargetCard().getOwner()); + } else if(Destination.equals("Exile")) AllZone.GameAction.removeFromGame(getTargetCard()); else if(Destination.equals("Hand")) { PlayerZone hand = AllZone.getZone(Constant.Zone.Hand, getTargetCard().getOwner());