mirror of
https://github.com/correl/mage.git
synced 2025-01-12 03:00:13 +00:00
[DMU] Implemented Benalish Sleeper
This commit is contained in:
parent
02c38445ec
commit
0f5a27e2e1
2 changed files with 50 additions and 0 deletions
49
Mage.Sets/src/mage/cards/b/BenalishSleeper.java
Normal file
49
Mage.Sets/src/mage/cards/b/BenalishSleeper.java
Normal file
|
@ -0,0 +1,49 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.condition.common.KickedCondition;
|
||||
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
||||
import mage.abilities.effects.common.SacrificeAllEffect;
|
||||
import mage.abilities.keyword.KickerAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.StaticFilters;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class BenalishSleeper extends CardImpl {
|
||||
|
||||
public BenalishSleeper(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}");
|
||||
|
||||
this.subtype.add(SubType.PHYREXIAN);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.SOLDIER);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Kicker {B}
|
||||
this.addAbility(new KickerAbility("{B}"));
|
||||
|
||||
// When Benalish Sleeper enters the battlefield, if it was kicked, each player sacrifices a creature.
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(new EntersBattlefieldTriggeredAbility(
|
||||
new SacrificeAllEffect(StaticFilters.FILTER_CONTROLLED_CREATURE_SHORT_TEXT)
|
||||
), KickedCondition.instance, "When {this} enters the battlefield, " +
|
||||
"if it was kicked, each player sacrifices a creature."));
|
||||
}
|
||||
|
||||
private BenalishSleeper(final BenalishSleeper card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BenalishSleeper copy() {
|
||||
return new BenalishSleeper(this);
|
||||
}
|
||||
}
|
|
@ -28,6 +28,7 @@ public final class DominariaUnited extends ExpansionSet {
|
|||
this.maxCardNumberInBooster = 281;
|
||||
|
||||
cards.add(new SetCardInfo("Adarkar Wastes", 243, Rarity.RARE, mage.cards.a.AdarkarWastes.class));
|
||||
cards.add(new SetCardInfo("Benalish Sleeper", 8, Rarity.COMMON, mage.cards.b.BenalishSleeper.class));
|
||||
cards.add(new SetCardInfo("Caves of Koilos", 244, Rarity.RARE, mage.cards.c.CavesOfKoilos.class));
|
||||
cards.add(new SetCardInfo("Charismatic Vanguard", 10, Rarity.COMMON, mage.cards.c.CharismaticVanguard.class));
|
||||
cards.add(new SetCardInfo("Evolved Sleeper", 93, Rarity.RARE, mage.cards.e.EvolvedSleeper.class));
|
||||
|
|
Loading…
Reference in a new issue