mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Fixed Confiscate
This commit is contained in:
parent
fa0e623120
commit
cc8c89a860
1 changed files with 5 additions and 5 deletions
|
@ -27,8 +27,6 @@
|
|||
*/
|
||||
package mage.sets.urzassaga;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.Constants;
|
||||
import mage.Constants.CardType;
|
||||
import mage.Constants.Rarity;
|
||||
|
@ -39,11 +37,12 @@ import mage.abilities.effects.common.continious.ControlEnchantedEffect;
|
|||
import mage.abilities.keyword.EnchantAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.target.TargetPermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Loki
|
||||
* @author Loki, noxx
|
||||
*/
|
||||
public class Confiscate extends CardImpl<Confiscate> {
|
||||
|
||||
|
@ -55,11 +54,12 @@ public class Confiscate extends CardImpl<Confiscate> {
|
|||
this.color.setBlue(true);
|
||||
|
||||
// Enchant permanent
|
||||
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
||||
TargetPermanent auraTarget = new TargetPermanent();
|
||||
this.getSpellAbility().addTarget(auraTarget);
|
||||
this.getSpellAbility().addEffect(new AttachEffect(Constants.Outcome.AddAbility));
|
||||
Ability ability = new EnchantAbility(auraTarget.getTargetName());
|
||||
this.addAbility(ability);
|
||||
|
||||
// You control enchanted permanent.
|
||||
this.addAbility(new SimpleStaticAbility(Constants.Zone.BATTLEFIELD, new ControlEnchantedEffect()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue