forked from External/mage
[WOE] Implement Slumbering Keepguard (#11014)
* [WOE] Implement Slumbering Keepguard * added hint and fixed boost effect
This commit is contained in:
parent
93cb4404e3
commit
e5f81fdf76
2 changed files with 55 additions and 0 deletions
54
Mage.Sets/src/mage/cards/s/SlumberingKeepguard.java
Normal file
54
Mage.Sets/src/mage/cards/s/SlumberingKeepguard.java
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
||||
import mage.abilities.effects.keyword.ScryEffect;
|
||||
import mage.abilities.hint.ValueHint;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterEnchantmentPermanent;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Xanderhall
|
||||
*/
|
||||
public final class SlumberingKeepguard extends CardImpl {
|
||||
|
||||
private static final DynamicValue value = new PermanentsOnBattlefieldCount(StaticFilters.FILTER_CONTROLLED_PERMANENT_ENCHANTMENT);
|
||||
|
||||
public SlumberingKeepguard(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{W}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.KNIGHT);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Whenever an enchantment enters the battlefield under your control, scry 1.
|
||||
this.addAbility(new EntersBattlefieldControlledTriggeredAbility(new ScryEffect(1, false), new FilterEnchantmentPermanent("an enchantment")));
|
||||
// {2}{W}: Slumbering Keepguard gets +1/+1 until end of turn for each enchantment you control.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new BoostSourceEffect(value, value, Duration.EndOfTurn, true), new ManaCostsImpl<>("{2}{W}"))
|
||||
.addHint(new ValueHint("Enchantments you control", value))
|
||||
);
|
||||
}
|
||||
|
||||
private SlumberingKeepguard(final SlumberingKeepguard card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SlumberingKeepguard copy() {
|
||||
return new SlumberingKeepguard(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -207,6 +207,7 @@ public final class WildsOfEldraine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Skybeast Tracker", 185, Rarity.COMMON, mage.cards.s.SkybeastTracker.class));
|
||||
cards.add(new SetCardInfo("Sleep-Cursed Faerie", 66, Rarity.RARE, mage.cards.s.SleepCursedFaerie.class));
|
||||
cards.add(new SetCardInfo("Sleight of Hand", 67, Rarity.COMMON, mage.cards.s.SleightOfHand.class));
|
||||
cards.add(new SetCardInfo("Slumbering Keepguard", 29, Rarity.COMMON, mage.cards.s.SlumberingKeepguard.class));
|
||||
cards.add(new SetCardInfo("Snaremaster Sprite", 68, Rarity.COMMON, mage.cards.s.SnaremasterSprite.class));
|
||||
cards.add(new SetCardInfo("Solitary Sanctuary", 30, Rarity.UNCOMMON, mage.cards.s.SolitarySanctuary.class));
|
||||
cards.add(new SetCardInfo("Song of Totentanz", 150, Rarity.RARE, mage.cards.s.SongOfTotentanz.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue