mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Added missing implementation of Take Possession.
This commit is contained in:
parent
58bf7cff3f
commit
57b517282d
1 changed files with 20 additions and 0 deletions
|
@ -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<TakePossession> {
|
|||
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) {
|
||||
|
|
Loading…
Reference in a new issue