mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Implemented Syr Gwyn, Hero of Ashenvale
This commit is contained in:
parent
71a917a5d4
commit
c6d1e5786d
2 changed files with 80 additions and 0 deletions
79
Mage.Sets/src/mage/cards/s/SyrGwynHeroOfAshenvale.java
Normal file
79
Mage.Sets/src/mage/cards/s/SyrGwynHeroOfAshenvale.java
Normal file
|
@ -0,0 +1,79 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.AttacksCreatureYouControlTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.LoseLifeSourceControllerEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.abilities.keyword.EquipFilterAbility;
|
||||
import mage.abilities.keyword.MenaceAbility;
|
||||
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 mage.constants.SuperType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.permanent.EquippedPredicate;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SyrGwynHeroOfAshenvale extends CardImpl {
|
||||
|
||||
private static final FilterControlledCreaturePermanent filter
|
||||
= new FilterControlledCreaturePermanent("an equipped creature you control");
|
||||
private static final FilterPermanent filter2
|
||||
= new FilterControlledPermanent(SubType.EQUIPMENT);
|
||||
private static final FilterControlledCreaturePermanent filter3
|
||||
= new FilterControlledCreaturePermanent(SubType.KNIGHT, "Knight");
|
||||
|
||||
static {
|
||||
filter.add(EquippedPredicate.instance);
|
||||
}
|
||||
|
||||
public SyrGwynHeroOfAshenvale(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}{W}{B}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.KNIGHT);
|
||||
this.power = new MageInt(5);
|
||||
this.toughness = new MageInt(5);
|
||||
|
||||
// Vigilance
|
||||
this.addAbility(VigilanceAbility.getInstance());
|
||||
|
||||
// Menace
|
||||
this.addAbility(new MenaceAbility());
|
||||
|
||||
// Whenever an equipped creature you control attacks, you draw a card and you lose 1 life.
|
||||
Ability ability = new AttacksCreatureYouControlTriggeredAbility(
|
||||
new DrawCardSourceControllerEffect(1).setText("you draw a card and"), false, filter
|
||||
);
|
||||
ability.addEffect(new LoseLifeSourceControllerEffect(1));
|
||||
this.addAbility(ability);
|
||||
|
||||
// Equipment you control have equip Knight {0}.
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect(
|
||||
new EquipFilterAbility(filter3, new GenericManaCost(0)), Duration.WhileOnBattlefield, filter2
|
||||
)));
|
||||
}
|
||||
|
||||
private SyrGwynHeroOfAshenvale(final SyrGwynHeroOfAshenvale card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SyrGwynHeroOfAshenvale copy() {
|
||||
return new SyrGwynHeroOfAshenvale(this);
|
||||
}
|
||||
}
|
|
@ -71,6 +71,7 @@ public final class ThroneOfEldraine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Slaying Fire", 143, Rarity.UNCOMMON, mage.cards.s.SlayingFire.class));
|
||||
cards.add(new SetCardInfo("Steelbane Hydra", 322, Rarity.RARE, mage.cards.s.SteelbaneHydra.class));
|
||||
cards.add(new SetCardInfo("Steelclaw Lance", 202, Rarity.UNCOMMON, mage.cards.s.SteelclawLance.class));
|
||||
cards.add(new SetCardInfo("Syr Gwyn, Hero of Ashenvale", 330, Rarity.MYTHIC, mage.cards.s.SyrGwynHeroOfAshenvale.class));
|
||||
cards.add(new SetCardInfo("Taste of Death", 320, Rarity.RARE, mage.cards.t.TasteOfDeath.class));
|
||||
cards.add(new SetCardInfo("The Circle of Loyalty", 9, Rarity.MYTHIC, mage.cards.t.TheCircleOfLoyalty.class));
|
||||
cards.add(new SetCardInfo("Thornwood Falls", 313, Rarity.COMMON, mage.cards.t.ThornwoodFalls.class));
|
||||
|
|
Loading…
Reference in a new issue