mirror of
https://github.com/correl/mage.git
synced 2025-03-16 17:00:13 -09:00
Implemented Vraska, Golgari Queen
This commit is contained in:
parent
10a68346de
commit
3e1641b93b
3 changed files with 104 additions and 0 deletions
78
Mage.Sets/src/mage/cards/v/VraskaGolgariQueen.java
Normal file
78
Mage.Sets/src/mage/cards/v/VraskaGolgariQueen.java
Normal file
|
@ -0,0 +1,78 @@
|
||||||
|
package mage.cards.v;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.LoyaltyAbility;
|
||||||
|
import mage.abilities.common.PlanswalkerEntersWithLoyalityCountersAbility;
|
||||||
|
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||||
|
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||||
|
import mage.abilities.effects.common.DoIfCostPaid;
|
||||||
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||||
|
import mage.abilities.effects.common.GainLifeEffect;
|
||||||
|
import mage.abilities.effects.common.GetEmblemEffect;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.constants.SuperType;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.ComparisonType;
|
||||||
|
import mage.filter.FilterPermanent;
|
||||||
|
import mage.filter.common.FilterControlledPermanent;
|
||||||
|
import mage.filter.common.FilterNonlandPermanent;
|
||||||
|
import mage.filter.predicate.mageobject.ConvertedManaCostPredicate;
|
||||||
|
import mage.filter.predicate.permanent.AnotherPredicate;
|
||||||
|
import mage.game.command.emblems.VraskaGolgariQueenEmblem;
|
||||||
|
import mage.target.TargetPermanent;
|
||||||
|
import mage.target.common.TargetControlledPermanent;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class VraskaGolgariQueen extends CardImpl {
|
||||||
|
|
||||||
|
private static final FilterControlledPermanent filter1
|
||||||
|
= new FilterControlledPermanent("another permanent");
|
||||||
|
private static final FilterPermanent filter2
|
||||||
|
= new FilterNonlandPermanent("nonland permanent with converted mana cost 3 or less");
|
||||||
|
|
||||||
|
static {
|
||||||
|
filter1.add(new AnotherPredicate());
|
||||||
|
filter2.add(new ConvertedManaCostPredicate(ComparisonType.FEWER_THAN, 4));
|
||||||
|
}
|
||||||
|
|
||||||
|
public VraskaGolgariQueen(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.PLANESWALKER}, "{2}{B}{G}");
|
||||||
|
|
||||||
|
this.addSuperType(SuperType.LEGENDARY);
|
||||||
|
this.subtype.add(SubType.VRASKA);
|
||||||
|
this.addAbility(new PlanswalkerEntersWithLoyalityCountersAbility(4));
|
||||||
|
|
||||||
|
// +2: You may sacrifice another permanent. If you do, you gain 1 life and draw a card.
|
||||||
|
DoIfCostPaid effect = new DoIfCostPaid(
|
||||||
|
new GainLifeEffect(1),
|
||||||
|
new SacrificeTargetCost(new TargetControlledPermanent(filter1))
|
||||||
|
);
|
||||||
|
effect.addEffect(new DrawCardSourceControllerEffect(1));
|
||||||
|
this.addAbility(new LoyaltyAbility(effect, 2));
|
||||||
|
|
||||||
|
// -3: Destroy target nonland permanent with converted mana cost 3 or less.
|
||||||
|
Ability ability = new LoyaltyAbility(new DestroyTargetEffect());
|
||||||
|
ability.addTarget(new TargetPermanent(filter2));
|
||||||
|
this.addAbility(ability);
|
||||||
|
|
||||||
|
// -9: You get an emblem with "Whenever a creature you control deals combat damage to a player, that player loses the game."
|
||||||
|
this.addAbility(new LoyaltyAbility(
|
||||||
|
new GetEmblemEffect(new VraskaGolgariQueenEmblem()), -9
|
||||||
|
));
|
||||||
|
}
|
||||||
|
|
||||||
|
public VraskaGolgariQueen(final VraskaGolgariQueen card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public VraskaGolgariQueen copy() {
|
||||||
|
return new VraskaGolgariQueen(this);
|
||||||
|
}
|
||||||
|
}
|
|
@ -116,6 +116,7 @@ public final class GuildsOfRavnica extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Unexplained Disappearance", 56, Rarity.COMMON, mage.cards.u.UnexplainedDisappearance.class));
|
cards.add(new SetCardInfo("Unexplained Disappearance", 56, Rarity.COMMON, mage.cards.u.UnexplainedDisappearance.class));
|
||||||
cards.add(new SetCardInfo("Vivid Revival", 148, Rarity.RARE, mage.cards.v.VividRevival.class));
|
cards.add(new SetCardInfo("Vivid Revival", 148, Rarity.RARE, mage.cards.v.VividRevival.class));
|
||||||
cards.add(new SetCardInfo("Vraska's Stoneglare", 272, Rarity.RARE, mage.cards.v.VraskasStoneglare.class));
|
cards.add(new SetCardInfo("Vraska's Stoneglare", 272, Rarity.RARE, mage.cards.v.VraskasStoneglare.class));
|
||||||
|
cards.add(new SetCardInfo("Vraska, Golgari Queen", 213, Rarity.MYTHIC, mage.cards.v.VraskaGolgariQueen.class));
|
||||||
cards.add(new SetCardInfo("Vraska, Regal Gorgon", 269, Rarity.MYTHIC, mage.cards.v.VraskaRegalGorgon.class));
|
cards.add(new SetCardInfo("Vraska, Regal Gorgon", 269, Rarity.MYTHIC, mage.cards.v.VraskaRegalGorgon.class));
|
||||||
cards.add(new SetCardInfo("Wary Okapi", 149, Rarity.COMMON, mage.cards.w.WaryOkapi.class));
|
cards.add(new SetCardInfo("Wary Okapi", 149, Rarity.COMMON, mage.cards.w.WaryOkapi.class));
|
||||||
cards.add(new SetCardInfo("Watery Grave", 259, Rarity.RARE, mage.cards.w.WateryGrave.class));
|
cards.add(new SetCardInfo("Watery Grave", 259, Rarity.RARE, mage.cards.w.WateryGrave.class));
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
package mage.game.command.emblems;
|
||||||
|
|
||||||
|
import mage.abilities.common.DealsDamageToAPlayerAllTriggeredAbility;
|
||||||
|
import mage.abilities.effects.common.LoseGameTargetPlayerEffect;
|
||||||
|
import mage.constants.SetTargetPointer;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
|
import mage.game.command.Emblem;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public class VraskaGolgariQueenEmblem extends Emblem {
|
||||||
|
|
||||||
|
// -9: You get an emblem with "Whenever a creature you control deals combat damage to a player, that player loses the game."
|
||||||
|
public VraskaGolgariQueenEmblem() {
|
||||||
|
this.setName("Emblem Vraska");
|
||||||
|
this.setExpansionSetCodeForImage("GRN");
|
||||||
|
this.getAbilities().add(new DealsDamageToAPlayerAllTriggeredAbility(
|
||||||
|
new LoseGameTargetPlayerEffect(),
|
||||||
|
StaticFilters.FILTER_CONTROLLED_A_CREATURE,
|
||||||
|
false, SetTargetPointer.NONE, true
|
||||||
|
));
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue