mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[EOE] Implement Tragic Trajectory
This commit is contained in:
parent
ccaeabaeba
commit
f3ada3c412
2 changed files with 47 additions and 0 deletions
46
Mage.Sets/src/mage/cards/t/TragicTrajectory.java
Normal file
46
Mage.Sets/src/mage/cards/t/TragicTrajectory.java
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.abilities.condition.common.VoidCondition;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.AddContinuousEffectToGame;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.AbilityWord;
|
||||
import mage.constants.CardType;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
import mage.watchers.common.VoidWatcher;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TragicTrajectory extends CardImpl {
|
||||
|
||||
public TragicTrajectory(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{B}");
|
||||
|
||||
// Target creature gets -2/-2 until end of turn.
|
||||
// Void -- That creature gets -10/-10 until end of turn instead if a nonland permanent left the battlefield this turn or a spell was warped this turn.
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new AddContinuousEffectToGame(new BoostTargetEffect(-10, -10)),
|
||||
new AddContinuousEffectToGame(new BoostTargetEffect(-2, -2)),
|
||||
VoidCondition.instance, "Target creature gets -2/-2 until end of turn. <br>" +
|
||||
AbilityWord.VOID.formatWord() + "That creature gets -10/-10 until end of turn instead " +
|
||||
"if a nonland permanent left the battlefield this turn or a spell was warped this turn"
|
||||
));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
this.getSpellAbility().addHint(VoidCondition.getHint());
|
||||
this.getSpellAbility().addWatcher(new VoidWatcher());
|
||||
}
|
||||
|
||||
private TragicTrajectory(final TragicTrajectory card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TragicTrajectory copy() {
|
||||
return new TragicTrajectory(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -103,6 +103,7 @@ public final class EdgeOfEternities extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("The Seriema", 35, Rarity.RARE, mage.cards.t.TheSeriema.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Thrumming Hivepool", 247, Rarity.RARE, mage.cards.t.ThrummingHivepool.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Thrumming Hivepool", 356, Rarity.RARE, mage.cards.t.ThrummingHivepool.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Tragic Trajectory", 122, Rarity.UNCOMMON, mage.cards.t.TragicTrajectory.class));
|
||||
cards.add(new SetCardInfo("Uthros, Titanic Godcore", 260, Rarity.MYTHIC, mage.cards.u.UthrosTitanicGodcore.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Uthros, Titanic Godcore", 285, Rarity.MYTHIC, mage.cards.u.UthrosTitanicGodcore.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Uthros, Titanic Godcore", 380, Rarity.MYTHIC, mage.cards.u.UthrosTitanicGodcore.class, NON_FULL_USE_VARIOUS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue