forked from External/mage
45 lines
1.5 KiB
Java
45 lines
1.5 KiB
Java
package mage.cards.l;
|
|
|
|
import mage.MageInt;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.common.DrawCardControllerTriggeredAbility;
|
|
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.constants.SuperType;
|
|
import mage.counters.CounterType;
|
|
import mage.target.common.TargetCreaturePermanent;
|
|
|
|
import java.util.UUID;
|
|
|
|
/**
|
|
* @author TheElk801
|
|
*/
|
|
public final class LylaHolographicAssistant extends CardImpl {
|
|
|
|
public LylaHolographicAssistant(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{3}{U}");
|
|
|
|
this.supertype.add(SuperType.LEGENDARY);
|
|
this.subtype.add(SubType.ILLUSION);
|
|
this.subtype.add(SubType.ADVISOR);
|
|
this.power = new MageInt(2);
|
|
this.toughness = new MageInt(2);
|
|
|
|
// Whenever you draw a card, put a +1/+1 counter on target creature.
|
|
Ability ability = new DrawCardControllerTriggeredAbility(new AddCountersTargetEffect(CounterType.P1P1.createInstance()), false);
|
|
ability.addTarget(new TargetCreaturePermanent());
|
|
this.addAbility(ability);
|
|
}
|
|
|
|
private LylaHolographicAssistant(final LylaHolographicAssistant card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public LylaHolographicAssistant copy() {
|
|
return new LylaHolographicAssistant(this);
|
|
}
|
|
}
|