From 57b517282ddc274f77e36ae0cc524b5955e5701a Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 17 Jun 2013 07:44:44 +0200 Subject: [PATCH] Added missing implementation of Take Possession. --- .../sets/modernmasters/TakePossession.java | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Mage.Sets/src/mage/sets/modernmasters/TakePossession.java b/Mage.Sets/src/mage/sets/modernmasters/TakePossession.java index 0e5b465085..6dc266b9ca 100644 --- a/Mage.Sets/src/mage/sets/modernmasters/TakePossession.java +++ b/Mage.Sets/src/mage/sets/modernmasters/TakePossession.java @@ -28,9 +28,19 @@ package mage.sets.modernmasters; import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.Effect; +import mage.abilities.effects.common.AttachEffect; +import mage.abilities.effects.common.continious.ControlEnchantedEffect; +import mage.abilities.keyword.EnchantAbility; +import mage.abilities.keyword.SplitSecondAbility; import mage.cards.CardImpl; import mage.constants.CardType; +import mage.constants.Outcome; import mage.constants.Rarity; +import mage.constants.Zone; +import mage.target.TargetPermanent; /** * @@ -46,8 +56,18 @@ public class TakePossession extends CardImpl { this.color.setBlue(true); // Split second + this.addAbility(SplitSecondAbility.getInstance()); // Enchant permanent + TargetPermanent auraTarget = new TargetPermanent(); + this.getSpellAbility().addTarget(auraTarget); + this.getSpellAbility().addEffect(new AttachEffect(Outcome.GainControl)); + Ability ability = new EnchantAbility(auraTarget.getTargetName()); + this.addAbility(ability); // You control enchanted permanent. + Effect effect = new ControlEnchantedEffect(); + effect.setText("You control enchanted permanent"); + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect)); + } public TakePossession(final TakePossession card) {