mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
[40K] Implemented Tallyman of Nurgle
This commit is contained in:
parent
7e55f25d31
commit
518c8c20b6
2 changed files with 69 additions and 0 deletions
68
Mage.Sets/src/mage/cards/t/TallymanOfNurgle.java
Normal file
68
Mage.Sets/src/mage/cards/t/TallymanOfNurgle.java
Normal file
|
@ -0,0 +1,68 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.condition.common.MorbidCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.dynamicvalue.common.CreaturesDiedThisTurnCount;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.LoseLifeSourceControllerEffect;
|
||||
import mage.abilities.hint.common.CreaturesDiedThisTurnHint;
|
||||
import mage.abilities.keyword.LifelinkAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.game.Game;
|
||||
import mage.watchers.common.CreaturesDiedWatcher;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TallymanOfNurgle extends CardImpl {
|
||||
|
||||
public TallymanOfNurgle(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}");
|
||||
|
||||
this.subtype.add(SubType.ASTARTES);
|
||||
this.subtype.add(SubType.WARRIOR);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Lifelink
|
||||
this.addAbility(LifelinkAbility.getInstance());
|
||||
|
||||
// The Seven-fold Chant -- At the beginning of your end step, if a creature died this turn, you draw a card and you lose 1 life. If seven or more creatures died this turn, instead you draw seven cards and you lose 7 life.
|
||||
this.addAbility(new BeginningOfEndStepTriggeredAbility(
|
||||
new ConditionalOneShotEffect(
|
||||
new DrawCardSourceControllerEffect(7), new DrawCardSourceControllerEffect(1),
|
||||
TallymanOfNurgleCondition.instance, "you draw a card and you lose 1 life. " +
|
||||
"If seven or more creatures died this turn, instead you draw seven cards and you lose 7 life"
|
||||
).addEffect(new LoseLifeSourceControllerEffect(7)).addOtherwiseEffect(new LoseLifeSourceControllerEffect(1)),
|
||||
TargetController.YOU, MorbidCondition.instance, false
|
||||
).withFlavorWord("The Seven-fold Chant").addHint(CreaturesDiedThisTurnHint.instance), new CreaturesDiedWatcher());
|
||||
}
|
||||
|
||||
private TallymanOfNurgle(final TallymanOfNurgle card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TallymanOfNurgle copy() {
|
||||
return new TallymanOfNurgle(this);
|
||||
}
|
||||
}
|
||||
|
||||
enum TallymanOfNurgleCondition implements Condition {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
return CreaturesDiedThisTurnCount.instance.calculate(game, source, null) >= 7;
|
||||
}
|
||||
}
|
|
@ -185,6 +185,7 @@ public final class Warhammer40000 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Talisman of Hierarchy", 256, Rarity.UNCOMMON, mage.cards.t.TalismanOfHierarchy.class));
|
||||
cards.add(new SetCardInfo("Talisman of Indulgence", 257, Rarity.UNCOMMON, mage.cards.t.TalismanOfIndulgence.class));
|
||||
cards.add(new SetCardInfo("Talisman of Progress", 258, Rarity.UNCOMMON, mage.cards.t.TalismanOfProgress.class));
|
||||
cards.add(new SetCardInfo("Tallyman of Nurgle", 60, Rarity.RARE, mage.cards.t.TallymanOfNurgle.class));
|
||||
cards.add(new SetCardInfo("Temple of Abandon", 297, Rarity.RARE, mage.cards.t.TempleOfAbandon.class));
|
||||
cards.add(new SetCardInfo("Temple of Epiphany", 298, Rarity.RARE, mage.cards.t.TempleOfEpiphany.class));
|
||||
cards.add(new SetCardInfo("Temple of Mystery", 299, Rarity.RARE, mage.cards.t.TempleOfMystery.class));
|
||||
|
|
Loading…
Reference in a new issue