From da2e704f76428cdfb5efea0f8b752897070e5c81 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 21 Mar 2015 01:04:28 +0100 Subject: [PATCH] * Den Protector - Fixed that the triggered ability was missing. --- Mage.Sets/src/mage/sets/dragonsoftarkir/DenProtector.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Mage.Sets/src/mage/sets/dragonsoftarkir/DenProtector.java b/Mage.Sets/src/mage/sets/dragonsoftarkir/DenProtector.java index de625398d6..d180b4e312 100644 --- a/Mage.Sets/src/mage/sets/dragonsoftarkir/DenProtector.java +++ b/Mage.Sets/src/mage/sets/dragonsoftarkir/DenProtector.java @@ -31,8 +31,10 @@ import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.common.TurnedFaceUpSourceTriggeredAbility; import mage.abilities.costs.mana.ManaCostsImpl; import mage.abilities.effects.RestrictionEffect; +import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect; import mage.abilities.keyword.MorphAbility; import mage.cards.CardImpl; import mage.constants.CardType; @@ -41,6 +43,7 @@ import mage.constants.Rarity; import mage.constants.Zone; import mage.game.Game; import mage.game.permanent.Permanent; +import mage.target.common.TargetCardInYourGraveyard; /** * @@ -62,6 +65,11 @@ public class DenProtector extends CardImpl { // Megamorph {1}{G} this.addAbility(new MorphAbility(this, new ManaCostsImpl("{1}{G}"), true)); + // When Den Protector is turned face up, return target card from your graveyard to your hand. + Ability ability = new TurnedFaceUpSourceTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect()); + ability.addTarget(new TargetCardInYourGraveyard()); + this.addAbility(ability); + } public DenProtector(final DenProtector card) {