Fixed Confiscate

This commit is contained in:
magenoxx 2012-05-07 08:15:26 +04:00
parent fa0e623120
commit cc8c89a860

View file

@ -27,8 +27,6 @@
*/ */
package mage.sets.urzassaga; package mage.sets.urzassaga;
import java.util.UUID;
import mage.Constants; import mage.Constants;
import mage.Constants.CardType; import mage.Constants.CardType;
import mage.Constants.Rarity; import mage.Constants.Rarity;
@ -39,11 +37,12 @@ import mage.abilities.effects.common.continious.ControlEnchantedEffect;
import mage.abilities.keyword.EnchantAbility; import mage.abilities.keyword.EnchantAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.target.TargetPermanent; import mage.target.TargetPermanent;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/** /**
* *
* @author Loki * @author Loki, noxx
*/ */
public class Confiscate extends CardImpl<Confiscate> { public class Confiscate extends CardImpl<Confiscate> {
@ -55,11 +54,12 @@ public class Confiscate extends CardImpl<Confiscate> {
this.color.setBlue(true); this.color.setBlue(true);
// Enchant permanent // Enchant permanent
TargetPermanent auraTarget = new TargetCreaturePermanent(); TargetPermanent auraTarget = new TargetPermanent();
this.getSpellAbility().addTarget(auraTarget); this.getSpellAbility().addTarget(auraTarget);
this.getSpellAbility().addEffect(new AttachEffect(Constants.Outcome.AddAbility)); this.getSpellAbility().addEffect(new AttachEffect(Constants.Outcome.AddAbility));
Ability ability = new EnchantAbility(auraTarget.getTargetName()); Ability ability = new EnchantAbility(auraTarget.getTargetName());
this.addAbility(ability); this.addAbility(ability);
// You control enchanted permanent. // You control enchanted permanent.
this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new ControlEnchantedEffect())); this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new ControlEnchantedEffect()));
} }