[CLB] Implemented Lapis Orb of Dragonkind

This commit is contained in:
Evan Kranzler 2022-06-01 20:23:53 -04:00
parent 921865a8f9
commit 4e2c3b76ac
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,48 @@
package mage.cards.l;
import mage.abilities.common.delayed.ManaSpentDelayedTriggeredAbility;
import mage.abilities.effects.common.CreateDelayedTriggeredAbilityEffect;
import mage.abilities.effects.keyword.ScryEffect;
import mage.abilities.mana.BasicManaAbility;
import mage.abilities.mana.BlueManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterSpell;
import mage.filter.common.FilterCreatureSpell;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class LapisOrbOfDragonkind extends CardImpl {
private static final FilterSpell filter = new FilterCreatureSpell("a Dragon creature spell");
static {
filter.add(SubType.DRAGON.getPredicate());
}
public LapisOrbOfDragonkind(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}{U}");
// {T}: Add {U}. When you spend this mana to cast a Dragon creature spell, scry 2.
BasicManaAbility ability = new BlueManaAbility();
ability.addEffect(new CreateDelayedTriggeredAbilityEffect(
new ManaSpentDelayedTriggeredAbility(new ScryEffect(2), filter)
));
ability.setUndoPossible(false);
this.addAbility(ability);
}
private LapisOrbOfDragonkind(final LapisOrbOfDragonkind card) {
super(card);
}
@Override
public LapisOrbOfDragonkind copy() {
return new LapisOrbOfDragonkind(this);
}
}

View file

@ -190,6 +190,7 @@ public final class CommanderLegendsBattleForBaldursGate extends ExpansionSet {
cards.add(new SetCardInfo("Korlessa, Scale Singer", 280, Rarity.UNCOMMON, mage.cards.k.KorlessaScaleSinger.class));
cards.add(new SetCardInfo("Lae'zel, Vlaakith's Champion", 29, Rarity.RARE, mage.cards.l.LaezelVlaakithsChampion.class));
cards.add(new SetCardInfo("Lantern of Revealing", 318, Rarity.COMMON, mage.cards.l.LanternOfRevealing.class));
cards.add(new SetCardInfo("Lapis Orb of Dragonkind", 82, Rarity.COMMON, mage.cards.l.LapisOrbOfDragonkind.class));
cards.add(new SetCardInfo("Legion Loyalty", 31, Rarity.MYTHIC, mage.cards.l.LegionLoyalty.class));
cards.add(new SetCardInfo("Lightning Bolt", 187, Rarity.COMMON, mage.cards.l.LightningBolt.class));
cards.add(new SetCardInfo("Livaan, Cultist of Tiamat", 188, Rarity.UNCOMMON, mage.cards.l.LivaanCultistOfTiamat.class));