forked from External/mage
60 lines
2.1 KiB
Java
60 lines
2.1 KiB
Java
package mage.cards.a;
|
|
|
|
import mage.MageInt;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
|
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
|
import mage.abilities.keyword.IndestructibleAbility;
|
|
import mage.abilities.triggers.BeginningOfCombatTriggeredAbility;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.Duration;
|
|
import mage.constants.SubType;
|
|
import mage.filter.common.FilterControlledCreaturePermanent;
|
|
import mage.target.TargetPermanent;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public final class AethershieldArtificer extends CardImpl {
|
|
|
|
private static final FilterControlledCreaturePermanent filter
|
|
= new FilterControlledCreaturePermanent("artifact creature you control");
|
|
|
|
static {
|
|
filter.add(CardType.ARTIFACT.getPredicate());
|
|
}
|
|
|
|
public AethershieldArtificer(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}");
|
|
|
|
this.subtype.add(SubType.DWARF);
|
|
this.subtype.add(SubType.ARTIFICER);
|
|
this.power = new MageInt(3);
|
|
this.toughness = new MageInt(3);
|
|
|
|
// At the beginning of combat on your turn, target artifact creature you control gets +2/+2 and gains indestructible until end of turn.
|
|
Ability ability = new BeginningOfCombatTriggeredAbility(
|
|
new BoostTargetEffect(2, 2, Duration.EndOfTurn)
|
|
.setText("target artifact creature you control gets +2/+2")
|
|
);
|
|
ability.addEffect(new GainAbilityTargetEffect(
|
|
IndestructibleAbility.getInstance(),
|
|
Duration.EndOfTurn
|
|
).setText("and gains indestructible until end of turn"));
|
|
ability.addTarget(new TargetPermanent(filter));
|
|
this.addAbility(ability);
|
|
}
|
|
|
|
private AethershieldArtificer(final AethershieldArtificer card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public AethershieldArtificer copy() {
|
|
return new AethershieldArtificer(this);
|
|
}
|
|
}
|