forked from External/mage
50 lines
1.6 KiB
Java
50 lines
1.6 KiB
Java
|
|
package mage.cards.a;
|
|
|
|
import java.util.UUID;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.common.AttacksAttachedTriggeredAbility;
|
|
import mage.abilities.common.SimpleStaticAbility;
|
|
import mage.abilities.effects.common.AttachEffect;
|
|
import mage.abilities.effects.common.combat.CantBeBlockedAttachedEffect;
|
|
import mage.abilities.effects.keyword.ScryEffect;
|
|
import mage.abilities.keyword.EnchantAbility;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.*;
|
|
import mage.target.TargetPermanent;
|
|
import mage.target.common.TargetCreaturePermanent;
|
|
|
|
/**
|
|
*
|
|
* @author LevelX2
|
|
*/
|
|
public final class AqueousForm extends CardImpl {
|
|
|
|
public AqueousForm(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.ENCHANTMENT},"{U}");
|
|
this.subtype.add(SubType.AURA);
|
|
|
|
|
|
// Enchant creature
|
|
TargetPermanent auraTarget = new TargetCreaturePermanent();
|
|
this.getSpellAbility().addTarget(auraTarget);
|
|
this.getSpellAbility().addEffect(new AttachEffect(Outcome.AddAbility));
|
|
Ability ability = new EnchantAbility(auraTarget);
|
|
this.addAbility(ability);
|
|
// Enchanted creature can't be blocked.
|
|
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new CantBeBlockedAttachedEffect(AttachmentType.AURA)));
|
|
|
|
// Whenever enchanted creature attacks, scry 1.
|
|
this.addAbility(new AttacksAttachedTriggeredAbility(new ScryEffect(1), AttachmentType.AURA,false));
|
|
}
|
|
|
|
private AqueousForm(final AqueousForm card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public AqueousForm copy() {
|
|
return new AqueousForm(this);
|
|
}
|
|
}
|