mirror of
https://github.com/correl/mage.git
synced 2025-01-12 11:08:01 +00:00
Implemented Thalia's Geistcaller
This commit is contained in:
parent
222ed6ce2c
commit
30e5f6da1c
3 changed files with 95 additions and 1 deletions
|
@ -38,7 +38,7 @@ public final class BurningVengeance extends CardImpl {
|
|||
|
||||
class BurningVengeanceOnCastAbility extends TriggeredAbilityImpl {
|
||||
|
||||
private static final String abilityText = "Whenever you cast a spell from your graveyard, Burning Vengeance deals 2 damage to any target";
|
||||
private static final String abilityText = "Whenever you cast a spell from your graveyard, {this} deals 2 damage to any target";
|
||||
|
||||
BurningVengeanceOnCastAbility() {
|
||||
super(Zone.BATTLEFIELD, new DamageTargetEffect(2), false);
|
||||
|
|
93
Mage.Sets/src/mage/cards/t/ThaliasGeistcaller.java
Normal file
93
Mage.Sets/src/mage/cards/t/ThaliasGeistcaller.java
Normal file
|
@ -0,0 +1,93 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.TriggeredAbilityImpl;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
|
||||
import mage.abilities.keyword.IndestructibleAbility;
|
||||
import mage.abilities.keyword.LifelinkAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.game.Game;
|
||||
import mage.game.events.GameEvent;
|
||||
import mage.game.permanent.token.SpiritWhiteToken;
|
||||
import mage.target.common.TargetControlledPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class ThaliasGeistcaller extends CardImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter
|
||||
= new FilterControlledPermanent(SubType.SPIRIT, "a Spirit");
|
||||
|
||||
public ThaliasGeistcaller(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{W}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.CLERIC);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Lifelink
|
||||
this.addAbility(LifelinkAbility.getInstance());
|
||||
|
||||
// Whenever you cast a spell from your graveyard, create a 1/1 white Spirit creature token with flying.
|
||||
this.addAbility(new ThaliasGeistcallerTriggeredAbility());
|
||||
|
||||
// Sacrifice a Spirit: Thalia's Geistcaller gains indestructible until end of turn.
|
||||
this.addAbility(new SimpleActivatedAbility(new GainAbilitySourceEffect(
|
||||
IndestructibleAbility.getInstance(), Duration.EndOfTurn
|
||||
), new SacrificeTargetCost(new TargetControlledPermanent(filter))));
|
||||
}
|
||||
|
||||
private ThaliasGeistcaller(final ThaliasGeistcaller card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ThaliasGeistcaller copy() {
|
||||
return new ThaliasGeistcaller(this);
|
||||
}
|
||||
}
|
||||
|
||||
class ThaliasGeistcallerTriggeredAbility extends TriggeredAbilityImpl {
|
||||
|
||||
ThaliasGeistcallerTriggeredAbility() {
|
||||
super(Zone.BATTLEFIELD, new CreateTokenEffect(new SpiritWhiteToken()), false);
|
||||
}
|
||||
|
||||
private ThaliasGeistcallerTriggeredAbility(ThaliasGeistcallerTriggeredAbility ability) {
|
||||
super(ability);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkEventType(GameEvent event, Game game) {
|
||||
return event.getType() == GameEvent.EventType.SPELL_CAST;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean checkTrigger(GameEvent event, Game game) {
|
||||
return event.getPlayerId().equals(controllerId) && event.getZone() == Zone.GRAVEYARD;
|
||||
}
|
||||
|
||||
@Override
|
||||
public ThaliasGeistcallerTriggeredAbility copy() {
|
||||
return new ThaliasGeistcallerTriggeredAbility(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getRule() {
|
||||
return "Whenever you cast a spell from your graveyard, " +
|
||||
"create a 1/1 white Spirit creature token with flying.";
|
||||
}
|
||||
}
|
|
@ -50,6 +50,7 @@ public final class Commander2019Edition extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Strionic Resonator", 224, Rarity.RARE, mage.cards.s.StrionicResonator.class));
|
||||
cards.add(new SetCardInfo("Sungrass Prairie", 277, Rarity.RARE, mage.cards.s.SungrassPrairie.class));
|
||||
cards.add(new SetCardInfo("Sunken Hollow", 278, Rarity.RARE, mage.cards.s.SunkenHollow.class));
|
||||
cards.add(new SetCardInfo("Thalia's Geistcaller", 7, Rarity.RARE, mage.cards.t.ThaliasGeistcaller.class));
|
||||
cards.add(new SetCardInfo("Thespian's Stage", 282, Rarity.RARE, mage.cards.t.ThespiansStage.class));
|
||||
cards.add(new SetCardInfo("Thran Dynamo", 223, Rarity.UNCOMMON, mage.cards.t.ThranDynamo.class));
|
||||
cards.add(new SetCardInfo("Trail of Mystery", 186, Rarity.RARE, mage.cards.t.TrailOfMystery.class));
|
||||
|
|
Loading…
Reference in a new issue