mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
[KHM] Implemented Duskwielder
This commit is contained in:
parent
8959416484
commit
495bc13078
3 changed files with 51 additions and 4 deletions
47
Mage.Sets/src/mage/cards/d/Duskwielder.java
Normal file
47
Mage.Sets/src/mage/cards/d/Duskwielder.java
Normal file
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.effects.common.LoseLifeTargetEffect;
|
||||
import mage.abilities.keyword.BoastAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.target.common.TargetOpponent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class Duskwielder extends CardImpl {
|
||||
|
||||
public Duskwielder(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}");
|
||||
|
||||
this.subtype.add(SubType.ELF);
|
||||
this.subtype.add(SubType.BERSERKER);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Boast — {1}: Target opponent loses 1 life and you gain 1 life.
|
||||
Ability ability = new BoastAbility(
|
||||
new LoseLifeTargetEffect(1), new GenericManaCost(1)
|
||||
);
|
||||
ability.addEffect(new GainLifeEffect(1).concatBy("and"));
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private Duskwielder(final Duskwielder card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Duskwielder copy() {
|
||||
return new Duskwielder(this);
|
||||
}
|
||||
}
|
|
@ -82,6 +82,7 @@ public final class Kaldheim extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Divine Gambit", 8, Rarity.UNCOMMON, mage.cards.d.DivineGambit.class));
|
||||
cards.add(new SetCardInfo("Dogged Pursuit", 85, Rarity.COMMON, mage.cards.d.DoggedPursuit.class));
|
||||
cards.add(new SetCardInfo("Doomskar Oracle", 10, Rarity.COMMON, mage.cards.d.DoomskarOracle.class));
|
||||
cards.add(new SetCardInfo("Duskwielder", 91, Rarity.COMMON, mage.cards.d.Duskwielder.class));
|
||||
cards.add(new SetCardInfo("Egon, God of Death", 92, Rarity.RARE, mage.cards.e.EgonGodOfDeath.class));
|
||||
cards.add(new SetCardInfo("Elderfang Disciple", 93, Rarity.COMMON, mage.cards.e.ElderfangDisciple.class));
|
||||
cards.add(new SetCardInfo("Elderfang Ritualist", 385, Rarity.UNCOMMON, mage.cards.e.ElderfangRitualist.class));
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.abilities.keyword;
|
|||
|
||||
import mage.abilities.ActivatedAbilityImpl;
|
||||
import mage.abilities.condition.common.BoastCondition;
|
||||
import mage.abilities.costs.mana.ManaCosts;
|
||||
import mage.abilities.costs.Cost;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.hint.common.BoastHint;
|
||||
import mage.constants.Zone;
|
||||
|
@ -10,12 +10,11 @@ import mage.game.Game;
|
|||
import mage.watchers.common.AttackedThisTurnWatcher;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author weirddan455
|
||||
*/
|
||||
public class BoastAbility extends ActivatedAbilityImpl {
|
||||
|
||||
public BoastAbility(Effect effect, ManaCosts cost) {
|
||||
public BoastAbility(Effect effect, Cost cost) {
|
||||
super(Zone.BATTLEFIELD, effect, cost);
|
||||
this.maxActivationsPerTurn = 1;
|
||||
this.addWatcher(new AttackedThisTurnWatcher());
|
||||
|
@ -23,7 +22,7 @@ public class BoastAbility extends ActivatedAbilityImpl {
|
|||
this.addHint(BoastHint.instance);
|
||||
}
|
||||
|
||||
public BoastAbility(BoastAbility ability) {
|
||||
private BoastAbility(BoastAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue