mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[CMR] Implemented Demonic Lore
This commit is contained in:
parent
dc215fa77f
commit
7eeb5c977f
2 changed files with 47 additions and 0 deletions
46
Mage.Sets/src/mage/cards/d/DemonicLore.java
Normal file
46
Mage.Sets/src/mage/cards/d/DemonicLore.java
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.MultipliedValue;
|
||||
import mage.abilities.dynamicvalue.common.CardsInControllerHandCount;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.LoseLifeSourceControllerEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.TargetController;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DemonicLore extends CardImpl {
|
||||
|
||||
private static final DynamicValue xValue = new MultipliedValue(CardsInControllerHandCount.instance, 2);
|
||||
|
||||
public DemonicLore(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{2}{B}");
|
||||
|
||||
// When Demonic Lore enters the battlefield, draw three cards.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(3)));
|
||||
|
||||
// At the beginning of your end step, you lose 2 life for each card in your hand.
|
||||
this.addAbility(new BeginningOfEndStepTriggeredAbility(
|
||||
new LoseLifeSourceControllerEffect(xValue)
|
||||
.setText("you lose 2 life for each card in your hand"),
|
||||
TargetController.YOU, false
|
||||
));
|
||||
}
|
||||
|
||||
private DemonicLore(final DemonicLore card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DemonicLore copy() {
|
||||
return new DemonicLore(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -38,6 +38,7 @@ public final class CommanderLegends extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Command Tower", 350, Rarity.COMMON, mage.cards.c.CommandTower.class));
|
||||
cards.add(new SetCardInfo("Commander's Sphere", 306, Rarity.COMMON, mage.cards.c.CommandersSphere.class));
|
||||
cards.add(new SetCardInfo("Confiscate", 62, Rarity.UNCOMMON, mage.cards.c.Confiscate.class));
|
||||
cards.add(new SetCardInfo("Demonic Lore", 118, Rarity.UNCOMMON, mage.cards.d.DemonicLore.class));
|
||||
cards.add(new SetCardInfo("Dragon Mantle", 174, Rarity.COMMON, mage.cards.d.DragonMantle.class));
|
||||
cards.add(new SetCardInfo("Entourage of Trest", 224, Rarity.COMMON, mage.cards.e.EntourageOfTrest.class));
|
||||
cards.add(new SetCardInfo("Exquisite Huntmaster", 122, Rarity.COMMON, mage.cards.e.ExquisiteHuntmaster.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue