mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
[CLB] Implemented Mystery Key
This commit is contained in:
parent
30b85c28bc
commit
f3ec69157a
2 changed files with 46 additions and 0 deletions
45
Mage.Sets/src/mage/cards/m/MysteryKey.java
Normal file
45
Mage.Sets/src/mage/cards/m/MysteryKey.java
Normal file
|
@ -0,0 +1,45 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import mage.abilities.common.DealsDamageToAPlayerAttachedTriggeredAbility;
|
||||
import mage.abilities.costs.common.SacrificeSourceCost;
|
||||
import mage.abilities.effects.common.DoIfCostPaid;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.keyword.EquipAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class MysteryKey extends CardImpl {
|
||||
|
||||
public MysteryKey(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{1}{U}");
|
||||
|
||||
this.subtype.add(SubType.EQUIPMENT);
|
||||
|
||||
// When equipped creature deals combat damage to a player, sacrifice Mystery Key. If you do, draw three cards.
|
||||
this.addAbility(new DealsDamageToAPlayerAttachedTriggeredAbility(
|
||||
new DoIfCostPaid(
|
||||
new DrawCardSourceControllerEffect(3),
|
||||
new SacrificeSourceCost(), null, false
|
||||
), "equipped", false
|
||||
));
|
||||
|
||||
// Equip {1}
|
||||
this.addAbility(new EquipAbility(1));
|
||||
}
|
||||
|
||||
private MysteryKey(final MysteryKey card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MysteryKey copy() {
|
||||
return new MysteryKey(this);
|
||||
}
|
||||
}
|
|
@ -130,6 +130,7 @@ public final class CommanderLegendsBattleForBaldursGate extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Morphic Pool", 357, Rarity.RARE, mage.cards.m.MorphicPool.class));
|
||||
cards.add(new SetCardInfo("Moss Diamond", 327, Rarity.COMMON, mage.cards.m.MossDiamond.class));
|
||||
cards.add(new SetCardInfo("Mountain", 463, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Mystery Key", 85, Rarity.UNCOMMON, mage.cards.m.MysteryKey.class));
|
||||
cards.add(new SetCardInfo("Nalia de'Arnise", 649, Rarity.MYTHIC, mage.cards.n.NaliaDeArnise.class));
|
||||
cards.add(new SetCardInfo("Nautiloid Ship", 328, Rarity.MYTHIC, mage.cards.n.NautiloidShip.class));
|
||||
cards.add(new SetCardInfo("Nemesis Phoenix", 189, Rarity.UNCOMMON, mage.cards.n.NemesisPhoenix.class));
|
||||
|
|
Loading…
Reference in a new issue