mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
Implemented Lightning Skelemental
This commit is contained in:
parent
c41726b054
commit
eda850a14a
2 changed files with 58 additions and 0 deletions
57
Mage.Sets/src/mage/cards/l/LightningSkelemental.java
Normal file
57
Mage.Sets/src/mage/cards/l/LightningSkelemental.java
Normal file
|
@ -0,0 +1,57 @@
|
|||
package mage.cards.l;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
|
||||
import mage.abilities.common.OnEventTriggeredAbility;
|
||||
import mage.abilities.effects.common.SacrificeSourceEffect;
|
||||
import mage.abilities.effects.common.discard.DiscardTargetEffect;
|
||||
import mage.abilities.keyword.HasteAbility;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.game.events.GameEvent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class LightningSkelemental extends CardImpl {
|
||||
|
||||
public LightningSkelemental(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}{R}{R}");
|
||||
|
||||
this.subtype.add(SubType.ELEMENTAL);
|
||||
this.subtype.add(SubType.SKELETON);
|
||||
this.power = new MageInt(6);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Trample
|
||||
this.addAbility(TrampleAbility.getInstance());
|
||||
|
||||
// Haste
|
||||
this.addAbility(HasteAbility.getInstance());
|
||||
|
||||
// Whenever Lightning Skelemental deals combat damage to a player, that player discards two cards.
|
||||
this.addAbility(new DealsCombatDamageToAPlayerTriggeredAbility(
|
||||
new DiscardTargetEffect(2), false, true
|
||||
));
|
||||
|
||||
// At the beginning of the end step, sacrifice Lightning Skelemental.
|
||||
this.addAbility(new OnEventTriggeredAbility(
|
||||
GameEvent.EventType.END_TURN_STEP_PRE, "beginning of the end step",
|
||||
true, new SacrificeSourceEffect()
|
||||
));
|
||||
}
|
||||
|
||||
private LightningSkelemental(final LightningSkelemental card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public LightningSkelemental copy() {
|
||||
return new LightningSkelemental(this);
|
||||
}
|
||||
}
|
|
@ -46,6 +46,7 @@ public final class ModernHorizons extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Ice-Fang Coatl", 203, Rarity.RARE, mage.cards.i.IceFangCoatl.class));
|
||||
cards.add(new SetCardInfo("Impostor of the Sixth Pride", 14, Rarity.COMMON, mage.cards.i.ImpostorOfTheSixthPride.class));
|
||||
cards.add(new SetCardInfo("Lava Dart", 134, Rarity.COMMON, mage.cards.l.LavaDart.class));
|
||||
cards.add(new SetCardInfo("Lightning Skelemental", 208, Rarity.RARE, mage.cards.l.LightningSkelemental.class));
|
||||
cards.add(new SetCardInfo("Man-o'-War", 55, Rarity.COMMON, mage.cards.m.ManOWar.class));
|
||||
cards.add(new SetCardInfo("Martyr's Soul", 19, Rarity.COMMON, mage.cards.m.MartyrsSoul.class));
|
||||
cards.add(new SetCardInfo("Munitions Expert", 209, Rarity.UNCOMMON, mage.cards.m.MunitionsExpert.class));
|
||||
|
|
Loading…
Reference in a new issue