mage/Mage.Sets/src/mage/cards/k/KorlessaScaleSinger.java
2022-05-18 19:04:50 -04:00

52 lines
1.6 KiB
Java

package mage.cards.k;
import mage.MageInt;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.continuous.LookAtTopCardOfLibraryAnyTimeEffect;
import mage.abilities.effects.common.continuous.PlayTheTopCardEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.constants.TargetController;
import mage.filter.FilterCard;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class KorlessaScaleSinger extends CardImpl {
private static final FilterCard filter = new FilterCard("cast Dragon spells");
static {
filter.add(SubType.DRAGON.getPredicate());
}
public KorlessaScaleSinger(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{G}{U}");
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.DRAGON);
this.subtype.add(SubType.BARD);
this.power = new MageInt(1);
this.toughness = new MageInt(4);
// You may look at the top card of your library any time.
this.addAbility(new SimpleStaticAbility(new LookAtTopCardOfLibraryAnyTimeEffect()));
// You may cast Dragon spells from the top of your library.
this.addAbility(new SimpleStaticAbility(new PlayTheTopCardEffect(TargetController.YOU, filter, false)));
}
private KorlessaScaleSinger(final KorlessaScaleSinger card) {
super(card);
}
@Override
public KorlessaScaleSinger copy() {
return new KorlessaScaleSinger(this);
}
}