mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
[AFC] Implemented Sefris of the Hidden Ways
This commit is contained in:
parent
7ccb390e4d
commit
34a0e9546a
3 changed files with 61 additions and 3 deletions
57
Mage.Sets/src/mage/cards/s/SefrisOfTheHiddenWays.java
Normal file
57
Mage.Sets/src/mage/cards/s/SefrisOfTheHiddenWays.java
Normal file
|
@ -0,0 +1,57 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.CompletedDungeonTriggeredAbility;
|
||||
import mage.abilities.common.PutCardIntoGraveFromAnywhereAllTriggeredAbility;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
|
||||
import mage.abilities.effects.keyword.VentureIntoTheDungeonEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.common.FilterCreatureCard;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SefrisOfTheHiddenWays extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCreatureCard("one or more creature cards");
|
||||
|
||||
public SefrisOfTheHiddenWays(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{W}{U}{B}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.WIZARD);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Whenever one or more creature cards are put into your graveyard from anywhere, venture into the dungeon. This ability triggers only once each turn.
|
||||
this.addAbility(new PutCardIntoGraveFromAnywhereAllTriggeredAbility(
|
||||
new VentureIntoTheDungeonEffect(), false, filter, TargetController.YOU
|
||||
).setTriggersOnce(true));
|
||||
|
||||
// Create Undead — Whenever you complete a dungeon, return target creature card from your graveyard to the battlefield.
|
||||
Ability ability = new CompletedDungeonTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect());
|
||||
ability.addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD));
|
||||
this.addAbility(ability.withFlavorWord("Create Undead"));
|
||||
}
|
||||
|
||||
private SefrisOfTheHiddenWays(final SefrisOfTheHiddenWays card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SefrisOfTheHiddenWays copy() {
|
||||
return new SefrisOfTheHiddenWays(this);
|
||||
}
|
||||
}
|
|
@ -191,6 +191,7 @@ public final class ForgottenRealmsCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Savage Ventmaw", 191, Rarity.UNCOMMON, mage.cards.s.SavageVentmaw.class));
|
||||
cards.add(new SetCardInfo("Scourge of Valkas", 137, Rarity.RARE, mage.cards.s.ScourgeOfValkas.class));
|
||||
cards.add(new SetCardInfo("Seaside Citadel", 258, Rarity.UNCOMMON, mage.cards.s.SeasideCitadel.class));
|
||||
cards.add(new SetCardInfo("Sefris of the Hidden Ways", 3, Rarity.MYTHIC, mage.cards.s.SefrisOfTheHiddenWays.class));
|
||||
cards.add(new SetCardInfo("Serum Visions", 94, Rarity.UNCOMMON, mage.cards.s.SerumVisions.class));
|
||||
cards.add(new SetCardInfo("Shadowblood Ridge", 259, Rarity.RARE, mage.cards.s.ShadowbloodRidge.class));
|
||||
cards.add(new SetCardInfo("Shamanic Revelation", 171, Rarity.RARE, mage.cards.s.ShamanicRevelation.class));
|
||||
|
|
|
@ -14,7 +14,6 @@ import mage.game.events.ZoneChangeEvent;
|
|||
import mage.target.targetpointer.FixedTarget;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class PutCardIntoGraveFromAnywhereAllTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
@ -42,7 +41,8 @@ public class PutCardIntoGraveFromAnywhereAllTriggeredAbility extends TriggeredAb
|
|||
this.filter.add(targetController.getOwnerPredicate());
|
||||
StringBuilder sb = new StringBuilder("Whenever ");
|
||||
sb.append(filter.getMessage());
|
||||
sb.append(" is put into ");
|
||||
sb.append(filter.getMessage().startsWith("one or more") ? " are" : "is");
|
||||
sb.append(" put into ");
|
||||
switch (targetController) {
|
||||
case OPPONENT:
|
||||
sb.append("an opponent's");
|
||||
|
@ -103,6 +103,6 @@ public class PutCardIntoGraveFromAnywhereAllTriggeredAbility extends TriggeredAb
|
|||
|
||||
@Override
|
||||
public String getTriggerPhrase() {
|
||||
return ruleText ;
|
||||
return ruleText;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue