Implemented Lathliss, Dragon Queen

This commit is contained in:
Evan Kranzler 2018-06-16 21:21:38 -04:00
parent 33caeb9499
commit 56493b631a
2 changed files with 77 additions and 0 deletions

View file

@ -0,0 +1,76 @@
package mage.cards.l;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.abilities.keyword.FlyingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.Zone;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.Predicates;
import mage.filter.predicate.mageobject.SubtypePredicate;
import mage.filter.predicate.permanent.AnotherPredicate;
import mage.filter.predicate.permanent.TokenPredicate;
import mage.game.permanent.token.DragonToken2;
/**
*
* @author TheElk801
*/
public final class LathlissDragonQueen extends CardImpl {
private static final FilterPermanent filter = new FilterPermanent("another nontoken Dragon");
private static final FilterCreaturePermanent filter2 = new FilterCreaturePermanent("Dragons");
static {
filter.add(new SubtypePredicate(SubType.DRAGON));
filter.add(Predicates.not(new TokenPredicate()));
filter.add(new AnotherPredicate());
filter2.add(new SubtypePredicate(SubType.DRAGON));
}
public LathlissDragonQueen(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{R}{R}");
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.DRAGON);
this.power = new MageInt(6);
this.toughness = new MageInt(6);
// Flying
this.addAbility(FlyingAbility.getInstance());
// Whenever another nontoken Dragon enters the battlefield under your control, create a 5/5 red Dragon creature token with flying.
this.addAbility(new EntersBattlefieldControlledTriggeredAbility(
new CreateTokenEffect(new DragonToken2()), filter
));
// {1}{R}: Dragons you control get +1/+0 until end of turn.
this.addAbility(new SimpleActivatedAbility(
Zone.BATTLEFIELD,
new BoostControlledEffect(
1, 0, Duration.EndOfTurn,
filter2, false
),
new ManaCostsImpl("{1}{R}")
));
}
public LathlissDragonQueen(final LathlissDragonQueen card) {
super(card);
}
@Override
public LathlissDragonQueen copy() {
return new LathlissDragonQueen(this);
}
}

View file

@ -84,6 +84,7 @@ public final class CoreSet2019 extends ExpansionSet {
cards.add(new SetCardInfo("Kargan Dragonrider", 297, Rarity.COMMON, mage.cards.k.KarganDragonrider.class));
cards.add(new SetCardInfo("Knight of the Tusk", 18, Rarity.COMMON, mage.cards.k.KnightOfTheTusk.class));
cards.add(new SetCardInfo("Knight's Pledge", 19, Rarity.COMMON, mage.cards.k.KnightsPledge.class));
cards.add(new SetCardInfo("Lathliss, Dragon Queen", 149, Rarity.RARE, mage.cards.l.LathlissDragonQueen.class));
cards.add(new SetCardInfo("Lava Axe", 150, Rarity.COMMON, mage.cards.l.LavaAxe.class));
cards.add(new SetCardInfo("Lich's Caress", 105, Rarity.COMMON, mage.cards.l.LichsCaress.class));
cards.add(new SetCardInfo("Lightning Strike", 152, Rarity.COMMON, mage.cards.l.LightningStrike.class));