mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
Implemented Sunmane Pegasus
This commit is contained in:
parent
5ce31781c7
commit
f18fd85828
2 changed files with 53 additions and 0 deletions
52
Mage.Sets/src/mage/cards/s/SunmanePegasus.java
Normal file
52
Mage.Sets/src/mage/cards/s/SunmanePegasus.java
Normal file
|
@ -0,0 +1,52 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.abilities.keyword.LifelinkAbility;
|
||||
import mage.abilities.keyword.VigilanceAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SunmanePegasus extends CardImpl {
|
||||
|
||||
public SunmanePegasus(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}");
|
||||
|
||||
this.subtype.add(SubType.PEGASUS);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// {1}{W}: Sunmane Pegasus gains vigilance and lifelink until end of turn.
|
||||
Ability ability = new SimpleActivatedAbility(new GainAbilitySourceEffect(
|
||||
VigilanceAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("{this} gains vigilance"), new ManaCostsImpl("{1}{W}"));
|
||||
ability.addEffect(new GainAbilitySourceEffect(
|
||||
LifelinkAbility.getInstance(), Duration.EndOfTurn
|
||||
).setText("and lifelink until end of turn"));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private SunmanePegasus(final SunmanePegasus card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SunmanePegasus copy() {
|
||||
return new SunmanePegasus(this);
|
||||
}
|
||||
}
|
|
@ -204,6 +204,7 @@ public final class TherosBeyondDeath extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Stinging Lionfish", 69, Rarity.UNCOMMON, mage.cards.s.StingingLionfish.class));
|
||||
cards.add(new SetCardInfo("Storm's Wrath", 157, Rarity.RARE, mage.cards.s.StormsWrath.class));
|
||||
cards.add(new SetCardInfo("Sunlit Hoplite", 273, Rarity.COMMON, mage.cards.s.SunlitHoplite.class));
|
||||
cards.add(new SetCardInfo("Sunmane Pegasus", 38, Rarity.COMMON, mage.cards.s.SunmanePegasus.class));
|
||||
cards.add(new SetCardInfo("Swamp", 252, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS));
|
||||
cards.add(new SetCardInfo("Sweet Oblivion", 70, Rarity.UNCOMMON, mage.cards.s.SweetOblivion.class));
|
||||
cards.add(new SetCardInfo("Swimmer in Nightmares", 275, Rarity.UNCOMMON, mage.cards.s.SwimmerInNightmares.class));
|
||||
|
|
Loading…
Reference in a new issue