mirror of
https://github.com/correl/mage.git
synced 2024-11-14 19:19:32 +00:00
[MAT] Implement Sigarda, Font of Blessings
This commit is contained in:
parent
89a6f520ab
commit
0fc1d66dad
2 changed files with 68 additions and 0 deletions
67
Mage.Sets/src/mage/cards/s/SigardaFontOfBlessings.java
Normal file
67
Mage.Sets/src/mage/cards/s/SigardaFontOfBlessings.java
Normal file
|
@ -0,0 +1,67 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.abilities.effects.common.continuous.LookAtTopCardOfLibraryAnyTimeEffect;
|
||||
import mage.abilities.effects.common.continuous.PlayTheTopCardEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.abilities.keyword.HexproofAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.*;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.filter.predicate.Predicates;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SigardaFontOfBlessings extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("Angel spells and Human spells");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
SubType.ANGEL.getPredicate(),
|
||||
SubType.HUMAN.getPredicate()
|
||||
));
|
||||
}
|
||||
|
||||
public SigardaFontOfBlessings(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}{W}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.ANGEL);
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// Other permanents you control have hexproof.
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect(
|
||||
HexproofAbility.getInstance(), Duration.WhileOnBattlefield,
|
||||
StaticFilters.FILTER_PERMANENTS, true
|
||||
)));
|
||||
|
||||
// You may look at the top card of your library any time.
|
||||
this.addAbility(new SimpleStaticAbility(new LookAtTopCardOfLibraryAnyTimeEffect()));
|
||||
|
||||
// You may cast Angel spells and Human spells from the top of your library.
|
||||
this.addAbility(new SimpleStaticAbility(new PlayTheTopCardEffect(
|
||||
TargetController.YOU, filter, false
|
||||
)));
|
||||
}
|
||||
|
||||
private SigardaFontOfBlessings(final SigardaFontOfBlessings card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SigardaFontOfBlessings copy() {
|
||||
return new SigardaFontOfBlessings(this);
|
||||
}
|
||||
}
|
|
@ -29,6 +29,7 @@ public final class MarchOfTheMachineTheAftermath extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Kolaghan Warmonger", 17, Rarity.UNCOMMON, mage.cards.k.KolaghanWarmonger.class));
|
||||
cards.add(new SetCardInfo("Markov Baron", 14, Rarity.UNCOMMON, mage.cards.m.MarkovBaron.class));
|
||||
cards.add(new SetCardInfo("Reckless Handling", 19, Rarity.UNCOMMON, mage.cards.r.RecklessHandling.class));
|
||||
cards.add(new SetCardInfo("Sigarda, Font of Blessings", 47, Rarity.RARE, mage.cards.s.SigardaFontOfBlessings.class));
|
||||
cards.add(new SetCardInfo("Spark Rupture", 5, Rarity.RARE, mage.cards.s.SparkRupture.class));
|
||||
cards.add(new SetCardInfo("The Kenriths' Royal Funeral", 34, Rarity.RARE, mage.cards.t.TheKenrithsRoyalFuneral.class));
|
||||
cards.add(new SetCardInfo("Training Grounds", 9, Rarity.RARE, mage.cards.t.TrainingGrounds.class));
|
||||
|
|
Loading…
Reference in a new issue