mirror of
https://github.com/correl/mage.git
synced 2025-03-13 01:09:53 -09:00
Implemented Glademuse
This commit is contained in:
parent
7e233baa28
commit
75ddf28c84
2 changed files with 61 additions and 0 deletions
Mage.Sets/src/mage
60
Mage.Sets/src/mage/cards/g/Glademuse.java
Normal file
60
Mage.Sets/src/mage/cards/g/Glademuse.java
Normal file
|
@ -0,0 +1,60 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SpellCastAllTriggeredAbility;
|
||||
import mage.abilities.effects.common.DrawCardTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SetTargetPointer;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.predicate.Predicate;
|
||||
import mage.game.Game;
|
||||
import mage.game.stack.StackObject;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class Glademuse extends CardImpl {
|
||||
|
||||
private static final FilterSpell filter = new FilterSpell("a spell, if it's not their turn");
|
||||
|
||||
static {
|
||||
filter.add(GlademusePredicate.instance);
|
||||
}
|
||||
|
||||
public Glademuse(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}");
|
||||
|
||||
this.subtype.add(SubType.BEAST);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(4);
|
||||
|
||||
// Whenever a player casts a spell, if it's not their turn, that player draws a card.
|
||||
this.addAbility(new SpellCastAllTriggeredAbility(
|
||||
new DrawCardTargetEffect(1).setText("that player draws a card"),
|
||||
filter, false, SetTargetPointer.PLAYER
|
||||
));
|
||||
}
|
||||
|
||||
private Glademuse(final Glademuse card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Glademuse copy() {
|
||||
return new Glademuse(this);
|
||||
}
|
||||
}
|
||||
|
||||
enum GlademusePredicate implements Predicate<StackObject> {
|
||||
instance;
|
||||
|
||||
@Override
|
||||
public boolean apply(StackObject spell, Game game) {
|
||||
return spell != null && !spell.getControllerId().equals(game.getActivePlayerId());
|
||||
}
|
||||
}
|
|
@ -76,6 +76,7 @@ public final class Commander2020Edition extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Fierce Guardianship", 35, Rarity.RARE, mage.cards.f.FierceGuardianship.class));
|
||||
cards.add(new SetCardInfo("Flawless Maneuver", 26, Rarity.RARE, mage.cards.f.FlawlessManeuver.class));
|
||||
cards.add(new SetCardInfo("Fluctuator", 241, Rarity.RARE, mage.cards.f.Fluctuator.class));
|
||||
cards.add(new SetCardInfo("Glademuse", 60, Rarity.RARE, mage.cards.g.Glademuse.class));
|
||||
cards.add(new SetCardInfo("Herald of the Forgotten", 27, Rarity.RARE, mage.cards.h.HeraldOfTheForgotten.class));
|
||||
cards.add(new SetCardInfo("Jace, Architect of Thought", 114, Rarity.MYTHIC, mage.cards.j.JaceArchitectOfThought.class));
|
||||
cards.add(new SetCardInfo("Jirina Kudro", 8, Rarity.MYTHIC, mage.cards.j.JirinaKudro.class));
|
||||
|
|
Loading…
Add table
Reference in a new issue