mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
[CLB] Implemented Ghost Lantern
This commit is contained in:
parent
9c3e51f024
commit
bb59030c09
2 changed files with 50 additions and 0 deletions
49
Mage.Sets/src/mage/cards/g/GhostLantern.java
Normal file
49
Mage.Sets/src/mage/cards/g/GhostLantern.java
Normal file
|
@ -0,0 +1,49 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import mage.abilities.common.DiesCreatureTriggeredAbility;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersAttachedEffect;
|
||||
import mage.abilities.keyword.EquipAbility;
|
||||
import mage.cards.AdventureCard;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class GhostLantern extends AdventureCard {
|
||||
|
||||
public GhostLantern(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, new CardType[]{CardType.INSTANT}, "{B}", "Bind Spirit", "{1}{B}");
|
||||
|
||||
this.subtype.add(SubType.EQUIPMENT);
|
||||
|
||||
// Whenever a creature you control dies, put a +1/+1 counter on equipped creature.
|
||||
this.addAbility(new DiesCreatureTriggeredAbility(new AddCountersAttachedEffect(
|
||||
CounterType.P1P1.createInstance(), "equipped creature"
|
||||
), false, StaticFilters.FILTER_CONTROLLED_A_CREATURE));
|
||||
|
||||
// Equip {1}
|
||||
this.addAbility(new EquipAbility(1));
|
||||
|
||||
// Bind Spirit
|
||||
// Return target creature card from your graveyard to your hand.
|
||||
this.getSpellCard().getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());
|
||||
this.getSpellCard().getSpellAbility().addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD));
|
||||
}
|
||||
|
||||
private GhostLantern(final GhostLantern card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GhostLantern copy() {
|
||||
return new GhostLantern(this);
|
||||
}
|
||||
}
|
|
@ -86,6 +86,7 @@ public final class CommanderLegendsBattleForBaldursGate extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Gate Colossus", 315, Rarity.UNCOMMON, mage.cards.g.GateColossus.class));
|
||||
cards.add(new SetCardInfo("Genasi Enforcers", 177, Rarity.COMMON, mage.cards.g.GenasiEnforcers.class));
|
||||
cards.add(new SetCardInfo("Geode Golem", 316, Rarity.UNCOMMON, mage.cards.g.GeodeGolem.class));
|
||||
cards.add(new SetCardInfo("Ghost Lantern", 128, Rarity.UNCOMMON, mage.cards.g.GhostLantern.class));
|
||||
cards.add(new SetCardInfo("Goggles of Night", 74, Rarity.COMMON, mage.cards.g.GogglesOfNight.class));
|
||||
cards.add(new SetCardInfo("Gorion, Wise Mentor", 276, Rarity.RARE, mage.cards.g.GorionWiseMentor.class));
|
||||
cards.add(new SetCardInfo("Gut, True Soul Zealot", 180, Rarity.UNCOMMON, mage.cards.g.GutTrueSoulZealot.class));
|
||||
|
|
Loading…
Reference in a new issue