mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Merge origin/master
This commit is contained in:
commit
92d1a6b9d8
353 changed files with 786 additions and 705 deletions
|
@ -1,7 +1,7 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.ReturnSourceFromGraveyardToBattlefieldEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
|
||||
|
@ -26,7 +26,7 @@ public final class AbnormalEndurance extends CardImpl {
|
|||
.setText("Until end of turn, target creature gets +2/+0")
|
||||
);
|
||||
getSpellAbility().addEffect(new GainAbilityTargetEffect(
|
||||
new DiesTriggeredAbility(new ReturnSourceFromGraveyardToBattlefieldEffect(true, true), false),
|
||||
new DiesSourceTriggeredAbility(new ReturnSourceFromGraveyardToBattlefieldEffect(true, true), false),
|
||||
Duration.EndOfTurn,
|
||||
"and gains \"When this creature dies, return it to the battlefield tapped under its owner's control.\""
|
||||
));
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.a;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.DestroyAllEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -31,7 +31,7 @@ public final class AbuJafar extends CardImpl {
|
|||
new BlockingAttackerIdPredicate(this.getId())));
|
||||
|
||||
// When Abu Ja'far dies, destroy all creatures blocking or blocked by it. They can't be regenerated.
|
||||
this.addAbility(new DiesTriggeredAbility(new DestroyAllEffect(filter, true), false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new DestroyAllEffect(filter, true), false));
|
||||
}
|
||||
|
||||
public AbuJafar(final AbuJafar card) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.a;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.SacrificeAllEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -24,7 +24,7 @@ public final class AbyssalGatekeeper extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Abyssal Gatekeeper dies, each player sacrifices a creature.
|
||||
this.addAbility(new DiesTriggeredAbility(new SacrificeAllEffect(1, new FilterControlledCreaturePermanent("creature"))));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new SacrificeAllEffect(1, new FilterControlledCreaturePermanent("creature"))));
|
||||
}
|
||||
|
||||
public AbyssalGatekeeper(final AbyssalGatekeeper card) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.a;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.keyword.BolsterEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -27,7 +27,7 @@ public final class AbzanSkycaptain extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// When Abzan Captain dies, bolster 2.
|
||||
this.addAbility(new DiesTriggeredAbility(new BolsterEffect(2)));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new BolsterEffect(2)));
|
||||
}
|
||||
|
||||
public AbzanSkycaptain(final AbzanSkycaptain card) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.a;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.costs.common.ExileSourceFromGraveCost;
|
||||
import mage.abilities.effects.common.DoIfCostPaid;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect;
|
||||
|
@ -29,7 +29,7 @@ public final class AcademyRector extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Academy Rector dies, you may exile it. If you do, search your library for an enchantment card, put that card onto the battlefield, then shuffle your library.
|
||||
this.addAbility(new DiesTriggeredAbility(
|
||||
this.addAbility(new DiesSourceTriggeredAbility(
|
||||
new DoIfCostPaid(
|
||||
new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(new FilterEnchantmentCard())),
|
||||
new ExileSourceFromGraveCost(),
|
||||
|
|
|
@ -5,7 +5,7 @@ import mage.MageInt;
|
|||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.SpellAbility;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.cost.CostModificationEffectImpl;
|
||||
|
@ -42,7 +42,7 @@ public final class AccursedWitch extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new AccursedWitchSpellsCostReductionEffect()));
|
||||
// When Accursed Witch dies, return it to the battlefield transformed under your control attached to target opponent.
|
||||
this.addAbility(new TransformAbility());
|
||||
Ability ability = new DiesTriggeredAbility(new AccursedWitchReturnTransformedEffect());
|
||||
Ability ability = new DiesSourceTriggeredAbility(new AccursedWitchReturnTransformedEffect());
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.a;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.SacrificeAllEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -29,7 +29,7 @@ public final class AkkiBlizzardHerder extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Akki Blizzard-Herder dies, each player sacrifices a land.
|
||||
this.addAbility(new DiesTriggeredAbility(new SacrificeAllEffect(filter)));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new SacrificeAllEffect(filter)));
|
||||
}
|
||||
|
||||
public AkkiBlizzardHerder(final AkkiBlizzardHerder card) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.a;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.ShuffleIntoLibrarySourceEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -26,7 +26,7 @@ public final class AlabasterDragon extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// When Alabaster Dragon dies, shuffle it into its owner's library.
|
||||
this.addAbility(new DiesTriggeredAbility(new ShuffleIntoLibrarySourceEffect())); }
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new ShuffleIntoLibrarySourceEffect())); }
|
||||
|
||||
public AlabasterDragon(final AlabasterDragon card) {
|
||||
super(card);
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.AttackingCreatureCount;
|
||||
|
@ -44,7 +44,7 @@ public final class AncientStoneIdol extends CardImpl {
|
|||
this.addAbility(TrampleAbility.getInstance());
|
||||
|
||||
// When Ancient Stone Idol dies, create a 6/12 colorless Construct artifact creature token with trample.
|
||||
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new StoneTrapIdolToken())));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new StoneTrapIdolToken())));
|
||||
}
|
||||
|
||||
public AncientStoneIdol(final AncientStoneIdol card) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.a;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.ShuffleIntoLibrarySourceEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -26,7 +26,7 @@ public final class AngelOfFury extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// When Angel of Fury is put into your graveyard from the battlefield, you may shuffle it into your library.
|
||||
this.addAbility(new DiesTriggeredAbility(new ShuffleIntoLibrarySourceEffect(), true));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new ShuffleIntoLibrarySourceEffect(), true));
|
||||
}
|
||||
|
||||
public AngelOfFury(final AngelOfFury card) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.a;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -24,7 +24,7 @@ public final class AnodetLurker extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// When Anodet Lurker dies, you gain 3 life.
|
||||
this.addAbility(new DiesTriggeredAbility(new GainLifeEffect(3)));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new GainLifeEffect(3)));
|
||||
}
|
||||
|
||||
public AnodetLurker(final AnodetLurker card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.a;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.PutOnLibraryTargetEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -38,7 +38,7 @@ public final class AphettoVulture extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// When Aphetto Vulture dies, you may put target Zombie card from your graveyard on top of your library.
|
||||
Ability ability = new DiesTriggeredAbility(new PutOnLibraryTargetEffect(true), true);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new PutOnLibraryTargetEffect(true), true);
|
||||
ability.addTarget(new TargetCardInYourGraveyard(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.a;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.Card;
|
||||
|
@ -33,7 +33,7 @@ public final class ArashinSovereign extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// When Arashin Sovereign dies, you may put it on the top or bottom of its owner's library.
|
||||
this.addAbility(new DiesTriggeredAbility(new ArashinSovereignEffect(), true));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new ArashinSovereignEffect(), true));
|
||||
}
|
||||
|
||||
public ArashinSovereign(final ArashinSovereign card) {
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.a;
|
|||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -33,7 +33,7 @@ public final class ArchonOfFallingStars extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// When Archon of Falling Stars dies, you may return target enchantment card from your graveyard to the battlefield.
|
||||
Ability ability = new DiesTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect(false, false), true);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect(false, false), true);
|
||||
ability.addTarget(new TargetCardInYourGraveyard(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.a;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.ExileTargetEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -27,7 +27,7 @@ public final class ArchonOfJustice extends CardImpl {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
Ability ability = new DiesTriggeredAbility(new ExileTargetEffect(), false);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new ExileTargetEffect(), false);
|
||||
ability.addTarget(new TargetPermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.a;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.costs.OrCost;
|
||||
import mage.constants.SubType;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
|
@ -45,7 +45,7 @@ public final class ArcticNishoba extends CardImpl {
|
|||
// When Arctic Nishoba dies, you gain 2 life for each age counter on it.
|
||||
Effect effect = new GainLifeEffect(new MultipliedValue(new CountersSourceCount(CounterType.AGE), 2));
|
||||
effect.setText("you gain 2 life for each age counter on it");
|
||||
this.addAbility(new DiesTriggeredAbility(effect));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(effect));
|
||||
}
|
||||
|
||||
public ArcticNishoba(final ArcticNishoba card) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.a;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.costs.common.ExileSourceFromGraveCost;
|
||||
import mage.abilities.effects.common.DoIfCostPaid;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInPlayEffect;
|
||||
|
@ -29,7 +29,7 @@ public final class ArenaRector extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Arena Rector dies, you may exile it. If you do, search your library for a planeswalker card, put it onto the battlefield, then shuffle your library.
|
||||
this.addAbility(new DiesTriggeredAbility(
|
||||
this.addAbility(new DiesSourceTriggeredAbility(
|
||||
new DoIfCostPaid(
|
||||
new SearchLibraryPutInPlayEffect(new TargetCardInLibrary(new FilterPlaneswalkerCard())),
|
||||
new ExileSourceFromGraveCost(),
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.a;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.TurnedFaceUpSourceTriggeredAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.Effect;
|
||||
|
@ -36,7 +36,7 @@ public final class AshcloudPhoenix extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// When Ashcloud Phoenix dies, return it to the battlefield face down under your control.
|
||||
this.addAbility(new DiesTriggeredAbility(new AshcloudPhoenixEffect()));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new AshcloudPhoenixEffect()));
|
||||
|
||||
// Morph {4}{R}{R}
|
||||
this.addAbility(new MorphAbility(this, new ManaCostsImpl<>("{4}{R}{R}")));
|
||||
|
|
|
@ -5,7 +5,7 @@ package mage.cards.a;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.common.ZuberasDiedDynamicValue;
|
||||
import mage.abilities.effects.common.discard.DiscardTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -27,7 +27,7 @@ public final class AshenSkinZubera extends CardImpl {
|
|||
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(2);
|
||||
Ability ability = new DiesTriggeredAbility(new DiscardTargetEffect(ZuberasDiedDynamicValue.instance));
|
||||
Ability ability = new DiesSourceTriggeredAbility(new DiscardTargetEffect(ZuberasDiedDynamicValue.instance));
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability, new ZuberasDiedWatcher());
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.a;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
|
||||
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount;
|
||||
|
@ -38,7 +38,7 @@ public final class AttendantOfVraska extends CardImpl {
|
|||
|
||||
// When Attendant of Vraska dies, if you control a Vraska planeswalker, you gain life equal to Attendant of Vraska's power.
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
|
||||
new DiesTriggeredAbility(new GainLifeEffect(
|
||||
new DiesSourceTriggeredAbility(new GainLifeEffect(
|
||||
new SourcePermanentPowerCount()
|
||||
), false), new PermanentsOnTheBattlefieldCondition(filter),
|
||||
"When {this} dies, if you control a Vraska planeswalker, "
|
||||
|
|
|
@ -7,7 +7,7 @@ package mage.cards.a;
|
|||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.ContinuousEffect;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.continuous.GainControlTargetEffect;
|
||||
|
@ -43,7 +43,7 @@ public final class AuraThief extends CardImpl {
|
|||
|
||||
// When Aura Thief dies, you gain control of all enchantments. You don't get
|
||||
// to move Auras.
|
||||
this.addAbility(new DiesTriggeredAbility(new AuraThiefDiesTriggeredEffect()));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new AuraThiefDiesTriggeredEffect()));
|
||||
}
|
||||
|
||||
public AuraThief(final AuraThief card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.a;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.SpellCastAllTriggeredAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.DoIfCostPaid;
|
||||
|
@ -36,7 +36,7 @@ public final class AuspiciousAncestor extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// When Auspicious Ancestor dies, you gain 3 life.
|
||||
this.addAbility(new DiesTriggeredAbility(new GainLifeEffect(3), false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new GainLifeEffect(3), false));
|
||||
// Whenever a player casts a white spell, you may pay {1}. If you do, you gain 1 life.
|
||||
this.addAbility(new SpellCastAllTriggeredAbility(new DoIfCostPaid(new GainLifeEffect(1), new ManaCostsImpl("{1}")), filter, true));
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.a;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -25,7 +25,7 @@ public final class AvenFisher extends CardImpl {
|
|||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
this.addAbility(new DiesTriggeredAbility(new DrawCardSourceControllerEffect(1), true));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new DrawCardSourceControllerEffect(1), true));
|
||||
}
|
||||
|
||||
public AvenFisher(final AvenFisher card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.a;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.Card;
|
||||
|
@ -33,7 +33,7 @@ public final class AvengingAngel extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// When Avenging Angel dies, you may put it on top of its owner's library.
|
||||
this.addAbility(new DiesTriggeredAbility(new AvengingAngelEffect(), true));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new AvengingAngelEffect(), true));
|
||||
}
|
||||
|
||||
public AvengingAngel(final AvengingAngel card) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import java.util.UUID;
|
|||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.CycleTriggeredAbility;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.CyclingAbility;
|
||||
|
@ -30,7 +30,7 @@ public final class BantSojourners extends CardImpl {
|
|||
|
||||
// When you cycle Bant Sojourners or it dies, you may create a 1/1 white Soldier creature token.
|
||||
Ability ability1 = new CycleTriggeredAbility(new CreateTokenEffect(new SoldierToken()), true);
|
||||
Ability ability2 = new DiesTriggeredAbility(new CreateTokenEffect(new SoldierToken()), true);
|
||||
Ability ability2 = new DiesSourceTriggeredAbility(new CreateTokenEffect(new SoldierToken()), true);
|
||||
this.addAbility(ability1);
|
||||
this.addAbility(ability2);
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.b;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.ExileSourceEffect;
|
||||
import mage.constants.SubType;
|
||||
|
@ -31,7 +31,7 @@ public final class Barishi extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// When Barishi dies, exile Barishi, then shuffle all creature cards from your graveyard into your library.
|
||||
this.addAbility(new DiesTriggeredAbility(new BarishiEffect(), false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new BarishiEffect(), false));
|
||||
}
|
||||
|
||||
public Barishi(final Barishi card) {
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.b;
|
|||
|
||||
import mage.MageInt;
|
||||
import mage.MageObject;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.DiscardCardControllerTriggeredAbility;
|
||||
|
@ -41,7 +41,7 @@ public final class BarteredCow extends CardImpl {
|
|||
// When Bartered Cow dies or when you discard it, create a Food token.
|
||||
this.addAbility(new OrTriggeredAbility(
|
||||
Zone.ALL, new CreateTokenEffect(new FoodToken()), false,
|
||||
"When {this} dies or when you discard it, ", new DiesTriggeredAbility((Effect) null),
|
||||
"When {this} dies or when you discard it, ", new DiesSourceTriggeredAbility((Effect) null),
|
||||
new DiscardCardControllerTriggeredAbility(null, false, filter)
|
||||
));
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.b;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.DelayedTriggeredAbility;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.delayed.AtTheBeginOfNextEndStepDelayedTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.CreateDelayedTriggeredAbilityEffect;
|
||||
|
@ -31,7 +31,7 @@ public final class BearerOfTheHeavens extends CardImpl {
|
|||
DelayedTriggeredAbility delayedAbility = new AtTheBeginOfNextEndStepDelayedTriggeredAbility(new DestroyAllEffect(StaticFilters.FILTER_PERMANENT));
|
||||
Effect effect = new CreateDelayedTriggeredAbilityEffect(delayedAbility);
|
||||
effect.setText("destroy all permanents at the beginning of the next end step");
|
||||
this.addAbility(new DiesTriggeredAbility(effect, false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(effect, false));
|
||||
}
|
||||
|
||||
public BearerOfTheHeavens(final BearerOfTheHeavens card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.b;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.LoseLifeSourceControllerEffect;
|
||||
import mage.abilities.effects.common.ShuffleLibrarySourceEffect;
|
||||
|
@ -35,7 +35,7 @@ public final class BibFortuna extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// When Bib Fortuna dies shuffle your library.
|
||||
this.addAbility(new DiesTriggeredAbility(new ShuffleLibrarySourceEffect()));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new ShuffleLibrarySourceEffect()));
|
||||
}
|
||||
|
||||
public BibFortuna(final BibFortuna card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.b;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.keyword.DeathtouchAbility;
|
||||
import mage.cards.Card;
|
||||
|
@ -36,7 +36,7 @@ public final class BitterheartWitch extends CardImpl {
|
|||
this.addAbility(DeathtouchAbility.getInstance());
|
||||
|
||||
// When Bitterheart Witch dies, you may search your library for a Curse card, put it onto the battlefield attached to target player, then shuffle your library.
|
||||
Ability ability = new DiesTriggeredAbility(new BitterheartWitchEffect(), true);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new BitterheartWitchEffect(), true);
|
||||
ability.addTarget(new TargetPlayer());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ package mage.cards.b;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.discard.DiscardTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -54,7 +54,7 @@ public final class BlackCat extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Black Cat dies, target opponent discards a card at random.
|
||||
Ability ability = new DiesTriggeredAbility(new DiscardTargetEffect(1, true),false);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new DiscardTargetEffect(1, true),false);
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.UUID;
|
|||
import mage.MageInt;
|
||||
import mage.MageObjectReference;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
|
@ -35,7 +35,7 @@ public final class BlazingEffigy extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// When Blazing Effigy dies, it deals X damage to target creature, where X is 3 plus the amount of damage dealt to Blazing Effigy this turn by other sources named Blazing Effigy.
|
||||
Ability ability = new DiesTriggeredAbility(new DamageTargetEffect(BlazingEffigyCount.instance), false);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new DamageTargetEffect(BlazingEffigyCount.instance), false);
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability, new BlazingEffigyWatcher());
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.b;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.LoseLifeOpponentsEffect;
|
||||
import mage.abilities.keyword.SwampwalkAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -28,7 +28,7 @@ public final class Blistergrub extends CardImpl {
|
|||
// Swampwalk (This creature can't be blocked as long as defending player controls a Swamp.)
|
||||
this.addAbility(new SwampwalkAbility());
|
||||
// When Blistergrub dies, each opponent loses 2 life.
|
||||
this.addAbility(new DiesTriggeredAbility(new LoseLifeOpponentsEffect(2), false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new LoseLifeOpponentsEffect(2), false));
|
||||
}
|
||||
|
||||
public Blistergrub (final Blistergrub card) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.b;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.DevoidAbility;
|
||||
|
@ -30,7 +30,7 @@ public final class Blisterpod extends CardImpl {
|
|||
// When Blisterpod dies, create a 1/1 colorless Eldrazi Scion creature token. It has "Sacrifice this creature: Add {C}."
|
||||
Effect effect = new CreateTokenEffect(new EldraziScionToken());
|
||||
effect.setText("Create a 1/1 colorless Eldrazi Scion creature token. It has \"Sacrifice this creature: Add {C}.\"");
|
||||
this.addAbility(new DiesTriggeredAbility(effect, false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(effect, false));
|
||||
}
|
||||
|
||||
public Blisterpod(final Blisterpod card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.b;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.costs.common.DiscardTargetCost;
|
||||
import mage.abilities.effects.Effect;
|
||||
|
@ -38,7 +38,7 @@ public final class BodySnatcher extends CardImpl {
|
|||
// When Body Snatcher dies, exile Body Snatcher and return target creature card from your graveyard to the battlefield.
|
||||
Effect effect = new ReturnFromGraveyardToBattlefieldTargetEffect();
|
||||
effect.setText("and return target creature card from your graveyard to the battlefield");
|
||||
Ability ability = new DiesTriggeredAbility(new ExileSourceEffect(), false);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new ExileSourceEffect(), false);
|
||||
ability.addEffect(effect);
|
||||
ability.addTarget(new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD));
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.b;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -24,7 +24,7 @@ public final class BogardanFirefiend extends CardImpl {
|
|||
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(1);
|
||||
Ability ability = new DiesTriggeredAbility(new DamageTargetEffect(2), false);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new DamageTargetEffect(2), false);
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.b;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.constants.SubType;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
|
@ -36,7 +36,7 @@ public final class BogardanPhoenix extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// When Bogardan Phoenix dies, exile it if it had a death counter on it. Otherwise, return it to the battlefield under your control and put a death counter on it.
|
||||
this.addAbility(new DiesTriggeredAbility(new BogardanPhoenixEffect(), false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new BogardanPhoenixEffect(), false));
|
||||
}
|
||||
|
||||
public BogardanPhoenix(final BogardanPhoenix card) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.b;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -25,7 +25,7 @@ public final class BrindleShoat extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Brindle Shoat dies, create a 3/3 green Boar creature token.
|
||||
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new BoarToken())));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new BoarToken())));
|
||||
}
|
||||
|
||||
public BrindleShoat(final BrindleShoat card) {
|
||||
|
|
|
@ -7,7 +7,7 @@ import java.util.UUID;
|
|||
import mage.MageInt;
|
||||
import mage.MageObjectReference;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.continuous.SetPowerToughnessAllEffect;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -36,7 +36,7 @@ public final class BrineHag extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Brine Hag dies, change the base power and toughness of all creatures that dealt damage to it this turn to 0/2.
|
||||
this.addAbility(new DiesTriggeredAbility(new BrineHagEffect()));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new BrineHagEffect()));
|
||||
}
|
||||
|
||||
public BrineHag(final BrineHag card) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import java.util.List;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.effects.ContinuousEffectImpl;
|
||||
|
@ -45,7 +45,7 @@ public final class BronzehideLion extends CardImpl {
|
|||
// When Bronzehide Lion dies, return it to the battlefield.
|
||||
// It's an Aura enchantment with enchant creature you control and
|
||||
// "{G}{W}: Enchanted creature gains indestructible until end of turn," and it loses all other abilities.
|
||||
this.addAbility(new DiesTriggeredAbility(new BronzehideLionReturnEffect()));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new BronzehideLionReturnEffect()));
|
||||
}
|
||||
|
||||
private BronzehideLion(final BronzehideLion card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.b;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.condition.Condition;
|
||||
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
|
@ -31,7 +31,7 @@ public final class BurningEyeZubera extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// When Burning-Eye Zubera dies, if 4 or more damage was dealt to it this turn, Burning-Eye Zubera deals 3 damage to any target.
|
||||
Ability ability = new ConditionalInterveningIfTriggeredAbility(new DiesTriggeredAbility(new DamageTargetEffect(3)),new SourceGotFourDamage(),
|
||||
Ability ability = new ConditionalInterveningIfTriggeredAbility(new DiesSourceTriggeredAbility(new DamageTargetEffect(3)),new SourceGotFourDamage(),
|
||||
"When {this} dies, if 4 or more damage was dealt to it this turn, Burning-Eye Zubera deals 3 damage to any target");
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.b;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.keyword.InvestigateEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -23,7 +23,7 @@ public final class BywayCourier extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Byway Courier dies, investigate.
|
||||
this.addAbility(new DiesTriggeredAbility(new InvestigateEffect(), false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new InvestigateEffect(), false));
|
||||
}
|
||||
|
||||
public BywayCourier(final BywayCourier card) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.dynamicvalue.common.CreaturesDiedThisTurnCount;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
|
@ -30,7 +30,7 @@ public final class CanopyStalker extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(new MustBeBlockedByAtLeastOneSourceEffect()));
|
||||
|
||||
// When Canopy Stalker dies, you gain 1 life for each creature that died this turn.
|
||||
this.addAbility(new DiesTriggeredAbility(
|
||||
this.addAbility(new DiesSourceTriggeredAbility(
|
||||
new GainLifeEffect(CreaturesDiedThisTurnCount.instance)
|
||||
.setText("you gain 1 life for each creature that died this turn")
|
||||
), new CreaturesDiedWatcher());
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.c;
|
|||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -40,7 +40,7 @@ public final class CarelessCelebrant extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Careless Celebrant dies, it deals 2 damage to target creature or planeswalker an opponent controls.
|
||||
Ability ability = new DiesTriggeredAbility(new DamageTargetEffect(2, "it"));
|
||||
Ability ability = new DiesSourceTriggeredAbility(new DamageTargetEffect(2, "it"));
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.c;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -27,7 +27,7 @@ public final class CarrierThrall extends CardImpl {
|
|||
// When Carrier Thrall dies, create a 1/1 colorless Eldrazi Scion creature token. It has "Sacrifice this creature. Add {C}."
|
||||
Effect effect = new CreateTokenEffect(new EldraziScionToken());
|
||||
effect.setText("create a 1/1 colorless Eldrazi Scion creature token. It has \"Sacrifice this creature: Add {C}.\"");
|
||||
this.addAbility(new DiesTriggeredAbility(effect, false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(effect, false));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.c;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.DoIfCostPaid;
|
||||
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
||||
|
@ -36,7 +36,7 @@ public final class CarrionThrash extends CardImpl {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
// When Carrion Thrash dies, you may pay {2}. If you do, return another target creature card from your graveyard to your hand.
|
||||
DiesTriggeredAbility ability = new DiesTriggeredAbility(new DoIfCostPaid(new ReturnToHandTargetEffect(), new GenericManaCost(2)), false);
|
||||
DiesSourceTriggeredAbility ability = new DiesSourceTriggeredAbility(new DoIfCostPaid(new ReturnToHandTargetEffect(), new GenericManaCost(2)), false);
|
||||
ability.addTarget(new TargetCardInYourGraveyard(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.c;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.Mana;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.mana.BasicManaEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -22,7 +22,7 @@ public final class Cathodion extends CardImpl {
|
|||
this.subtype.add(SubType.CONSTRUCT);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
this.addAbility(new DiesTriggeredAbility(new BasicManaEffect(Mana.ColorlessMana(3)), false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new BasicManaEffect(Mana.ColorlessMana(3)), false));
|
||||
}
|
||||
|
||||
public Cathodion(final Cathodion card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.c;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.LoseLifeAllPlayersEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -23,7 +23,7 @@ public final class CausticHound extends CardImpl {
|
|||
|
||||
this.power = new MageInt(4);
|
||||
this.toughness = new MageInt(4);
|
||||
this.addAbility(new DiesTriggeredAbility(new LoseLifeAllPlayersEffect(4)));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new LoseLifeAllPlayersEffect(4)));
|
||||
}
|
||||
|
||||
public CausticHound (final CausticHound card) {
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.c;
|
|||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
|
@ -51,7 +51,7 @@ public final class CavalierOfDawn extends CardImpl {
|
|||
this.addAbility(ability);
|
||||
|
||||
// When Cavalier of Dawn dies, return target artifact or enchantment card from your graveyard to your hand.
|
||||
ability = new DiesTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect());
|
||||
ability = new DiesSourceTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect());
|
||||
ability.addTarget(new TargetCardInYourGraveyard(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.c;
|
|||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
|
@ -61,7 +61,7 @@ public final class CavalierOfFlame extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldTriggeredAbility(new CavalierOfFlameEffect()));
|
||||
|
||||
// When Cavalier of Flame dies, it deals X damage to each opponent and each planeswalker they control, where X is the number of land cards in your graveyard.
|
||||
ability = new DiesTriggeredAbility(new DamagePlayersEffect(
|
||||
ability = new DiesSourceTriggeredAbility(new DamagePlayersEffect(
|
||||
Outcome.Damage, xValue, TargetController.OPPONENT
|
||||
).setText("it deals X damage to each opponent"));
|
||||
ability.addEffect(new DamageAllEffect(
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.c;
|
|||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.BrainstormEffect;
|
||||
import mage.abilities.effects.common.ShuffleIntoLibrarySourceEffect;
|
||||
|
@ -35,7 +35,7 @@ public final class CavalierOfGales extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldTriggeredAbility(new BrainstormEffect()));
|
||||
|
||||
// When Cavalier of Gales dies, shuffle it into its owner's library, then scry 2.
|
||||
Ability ability = new DiesTriggeredAbility(new ShuffleIntoLibrarySourceEffect());
|
||||
Ability ability = new DiesSourceTriggeredAbility(new ShuffleIntoLibrarySourceEffect());
|
||||
ability.addEffect(new ScryEffect(2).concatBy(", then"));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.c;
|
|||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.common.delayed.ReflexiveTriggeredAbility;
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
|
@ -64,7 +64,7 @@ public final class CavalierOfNight extends CardImpl {
|
|||
)));
|
||||
|
||||
// When Cavalier of Night dies, return target creature card with converted mana cost 3 or less from your graveyard to the battlefield.
|
||||
Ability ability = new DiesTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect());
|
||||
Ability ability = new DiesSourceTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect());
|
||||
ability.addTarget(new TargetCardInYourGraveyard(filter2));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.c;
|
|||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.costs.common.ExileSourceFromGraveCost;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
|
@ -50,7 +50,7 @@ public final class CavalierOfThorns extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldTriggeredAbility(new CavalierOfThornsEffect()));
|
||||
|
||||
// When Cavalier of Thorns dies, you may exile it. If you do, put another target card from your graveyard on top of your library.
|
||||
Ability ability = new DiesTriggeredAbility(new DoIfCostPaid(
|
||||
Ability ability = new DiesSourceTriggeredAbility(new DoIfCostPaid(
|
||||
new PutOnLibraryTargetEffect(true), new ExileSourceFromGraveCost()
|
||||
).setText("you may exile it. If you do, put another target card from your graveyard on top of your library."));
|
||||
ability.addTarget(new TargetCardInYourGraveyard(filter));
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.c;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.ExileSourceEffect;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
|
||||
|
@ -47,7 +47,7 @@ public final class CelestialGatekeeper extends CardImpl {
|
|||
// When Celestial Gatekeeper dies, exile it, then return up to two target Bird and/or Cleric permanent cards from your graveyard to the battlefield.
|
||||
Effect effect = new ExileSourceEffect();
|
||||
effect.setText("");
|
||||
DiesTriggeredAbility ability = new DiesTriggeredAbility(effect);
|
||||
DiesSourceTriggeredAbility ability = new DiesSourceTriggeredAbility(effect);
|
||||
effect = new ReturnFromGraveyardToBattlefieldTargetEffect();
|
||||
effect.setText("exile it, then return up to two target Bird and/or Cleric permanent cards from your graveyard to the battlefield");
|
||||
ability.addEffect(effect);
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.c;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -25,7 +25,7 @@ public final class CentaurSafeguard extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Centaur Safeguard dies, you may gain 3 life.
|
||||
this.addAbility(new DiesTriggeredAbility(new GainLifeEffect(3), true));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new GainLifeEffect(3), true));
|
||||
}
|
||||
|
||||
public CentaurSafeguard(final CentaurSafeguard card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.c;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.DrawCardControllerTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
|
@ -39,7 +39,7 @@ public final class ChasmSkulker extends CardImpl {
|
|||
this.addAbility(new DrawCardControllerTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false));
|
||||
|
||||
// When Chasm Skulker dies, create X 1/1 blue Squid creature tokens with islandwalk, where X is the number of +1/+1 counters on Chasm Skulker.
|
||||
this.addAbility(new DiesTriggeredAbility(new ChasmSkulkerEffect(), false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new ChasmSkulkerEffect(), false));
|
||||
}
|
||||
|
||||
public ChasmSkulker(final ChasmSkulker card) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.c;
|
|||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.DelayedTriggeredAbility;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.CreateDelayedTriggeredAbilityEffect;
|
||||
|
@ -45,7 +45,7 @@ public final class CherishedHatchling extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Cherished Hatchling dies, you may cast Dinosaur spells this turn as though they had flash, and whenever you cast a Dinosaur spell this turn, it gains "When this creature enters the battlefield, you may have it fight another target creature."
|
||||
Ability ability = new DiesTriggeredAbility(new CastAsThoughItHadFlashAllEffect(Duration.EndOfTurn, filterCard, false));
|
||||
Ability ability = new DiesSourceTriggeredAbility(new CastAsThoughItHadFlashAllEffect(Duration.EndOfTurn, filterCard, false));
|
||||
ability.addEffect(new CreateDelayedTriggeredAbilityEffect(new CherishedHatchlingTriggeredAbility()));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.c;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.DestroyAllEffect;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -31,7 +31,7 @@ public final class ChildOfAlara extends CardImpl {
|
|||
this.addAbility(TrampleAbility.getInstance());
|
||||
|
||||
// When Child of Alara dies, destroy all nonland permanents. They can't be regenerated.
|
||||
this.addAbility(new DiesTriggeredAbility(new DestroyAllEffect(new FilterNonlandPermanent("nonland permanents"), true)));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new DestroyAllEffect(new FilterNonlandPermanent("nonland permanents"), true)));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.c;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.Card;
|
||||
|
@ -35,7 +35,7 @@ public final class ChimneyImp extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// When Chimney Imp dies, target opponent puts a card from their hand on top of their library.
|
||||
Ability ability = new DiesTriggeredAbility(new ChimneyImpEffect(), false);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new ChimneyImpEffect(), false);
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability);
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.c;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldAbility;
|
||||
import mage.abilities.condition.common.LastTimeCounterRemovedCondition;
|
||||
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
||||
|
@ -46,7 +46,7 @@ public final class Chronozoa extends CardImpl {
|
|||
// When Chronozoa is put into a graveyard from play, if it had no time counters on it, create two tokens that are copies of it.
|
||||
Effect effect = new CreateTokenCopySourceEffect(2);
|
||||
effect.setText("create two tokens that are copies of it");
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(new DiesTriggeredAbility(effect, false),
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(new DiesSourceTriggeredAbility(effect, false),
|
||||
LastTimeCounterRemovedCondition.instance,
|
||||
"When {this} dies, if it had no time counters on it, create two tokens that are copies of it."));
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.c;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.keyword.SurveilEffect;
|
||||
import mage.constants.SubType;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
|
@ -27,7 +27,7 @@ public final class CitywatchSphinx extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// When Citywatch Sphinx dies, surveil 2.
|
||||
this.addAbility(new DiesTriggeredAbility(new SurveilEffect(2)));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new SurveilEffect(2)));
|
||||
}
|
||||
|
||||
public CitywatchSphinx(final CitywatchSphinx card) {
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.c;
|
|||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.*;
|
||||
|
@ -36,7 +36,7 @@ public final class CloneShell extends CardImpl {
|
|||
this.addAbility(new EntersBattlefieldTriggeredAbility(new CloneShellEffect(), false));
|
||||
|
||||
// When Clone Shell dies, turn the exiled card face up. If it's a creature card, put it onto the battlefield under your control.
|
||||
this.addAbility(new DiesTriggeredAbility(new CloneShellDiesEffect()));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new CloneShellDiesEffect()));
|
||||
}
|
||||
|
||||
public CloneShell(final CloneShell card) {
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.c;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.constants.SubType;
|
||||
import mage.abilities.keyword.VigilanceAbility;
|
||||
|
@ -29,7 +29,7 @@ public final class ConclaveCavalier extends CardImpl {
|
|||
this.addAbility(VigilanceAbility.getInstance());
|
||||
|
||||
// When Conclave Cavalier dies, create two green and white 2/2 Elf Knight creature tokens with vigilance.
|
||||
this.addAbility(new DiesTriggeredAbility(
|
||||
this.addAbility(new DiesSourceTriggeredAbility(
|
||||
new CreateTokenEffect(new ElfKnightToken(), 2)
|
||||
));
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.c;
|
|||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount;
|
||||
|
@ -40,7 +40,7 @@ public final class ConclaveMentor extends CardImpl {
|
|||
this.addAbility(new SimpleStaticAbility(new ConclaveMentorEffect()));
|
||||
|
||||
// When Conclave Mentor dies, you gain life equal to its power.
|
||||
this.addAbility(new DiesTriggeredAbility(new GainLifeEffect(xValue, "you gain life equal to its power")));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new GainLifeEffect(xValue, "you gain life equal to its power")));
|
||||
}
|
||||
|
||||
private ConclaveMentor(final ConclaveMentor card) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.counter.ProliferateEffect;
|
||||
import mage.abilities.keyword.InfectAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -26,7 +26,7 @@ public final class CoreProwler extends CardImpl {
|
|||
this.addAbility(InfectAbility.getInstance());
|
||||
|
||||
// When Core Prowler dies, proliferate. (You choose any number of permanents and/or players with counters on them, then give each another counter of a kind already there.)
|
||||
this.addAbility(new DiesTriggeredAbility(new ProliferateEffect()));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new ProliferateEffect()));
|
||||
}
|
||||
|
||||
public CoreProwler(final CoreProwler card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.c;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.common.CardsInTargetPlayersGraveyardCount;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
|
@ -33,7 +33,7 @@ public final class CorpseAugur extends CardImpl {
|
|||
CardsInTargetPlayersGraveyardCount dynamicValue = new CardsInTargetPlayersGraveyardCount(new FilterCreatureCard("the number of creature cards"));
|
||||
Effect effect = new DrawCardSourceControllerEffect(dynamicValue);
|
||||
effect.setText("You draw X cards");
|
||||
Ability ability = new DiesTriggeredAbility(effect, false);
|
||||
Ability ability = new DiesSourceTriggeredAbility(effect, false);
|
||||
effect = new LoseLifeSourceControllerEffect(dynamicValue);
|
||||
effect.setText("and you lose X life, where X is the number of creature cards in target player's graveyard");
|
||||
ability.addEffect(effect);
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.c;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.common.continuous.BecomesCreatureTargetEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
|
@ -34,7 +34,7 @@ public final class CycloneSire extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// When Cyclone Sire dies, you may put three +1/+1 counters on target land you control. If you do, that land becomes a 0/0 Elemental creature with haste that's still a land.
|
||||
Ability ability = new DiesTriggeredAbility(new AddCountersTargetEffect(CounterType.P1P1.createInstance(3)), true);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new AddCountersTargetEffect(CounterType.P1P1.createInstance(3)), true);
|
||||
Effect effect = new BecomesCreatureTargetEffect(new WallOfResurgenceToken(), false, true, Duration.Custom);
|
||||
effect.setText("If you do, that land becomes a 0/0 Elemental creature with haste that's still a land");
|
||||
ability.addEffect(effect);
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.c;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.ExileSourceEffect;
|
||||
import mage.abilities.effects.common.continuous.BecomesBasicLandTargetEffect;
|
||||
import mage.constants.Duration;
|
||||
|
@ -27,7 +27,7 @@ public final class CyclopeanGiant extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Cyclopean Giant dies, target land becomes a Swamp. Exile Cyclopean Giant.
|
||||
DiesTriggeredAbility ability = new DiesTriggeredAbility(new BecomesBasicLandTargetEffect(Duration.EndOfGame, SubType.SWAMP));
|
||||
DiesSourceTriggeredAbility ability = new DiesSourceTriggeredAbility(new BecomesBasicLandTargetEffect(Duration.EndOfGame, SubType.SWAMP));
|
||||
ability.addEffect(new ExileSourceEffect());
|
||||
ability.addTarget(new TargetLandPermanent());
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.c;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.ExileSourceEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -23,7 +23,7 @@ public final class CyclopeanMummy extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Cyclopean Mummy dies, exile it.
|
||||
this.addAbility(new DiesTriggeredAbility(new ExileSourceEffect()));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new ExileSourceEffect()));
|
||||
}
|
||||
|
||||
public CyclopeanMummy(final CyclopeanMummy card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.d;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.Card;
|
||||
|
@ -35,7 +35,7 @@ public final class DarkRevenant extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// When Dark Revenant dies, put it on top of its owner's library.
|
||||
this.addAbility(new DiesTriggeredAbility(new DarkRevenantEffect()));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new DarkRevenantEffect()));
|
||||
}
|
||||
|
||||
public DarkRevenant(final DarkRevenant card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.d;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -25,7 +25,7 @@ public final class DarkslickDrake extends CardImpl {
|
|||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(4);
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
this.addAbility(new DiesTriggeredAbility(new DrawCardSourceControllerEffect(1), false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new DrawCardSourceControllerEffect(1), false));
|
||||
}
|
||||
|
||||
public DarkslickDrake (final DarkslickDrake card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.d;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.discard.DiscardTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -26,7 +26,7 @@ public final class DeadbridgeShaman extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Deadbridge Shaman dies, target opponent discards a card.
|
||||
Ability ability = new DiesTriggeredAbility(new DiscardTargetEffect(1));
|
||||
Ability ability = new DiesSourceTriggeredAbility(new DiscardTargetEffect(1));
|
||||
ability.addTarget(new TargetOpponent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.d;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.EntersBattlefieldAbility;
|
||||
import mage.abilities.condition.common.LastTimeCounterRemovedCondition;
|
||||
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
||||
|
@ -38,7 +38,7 @@ public final class DeadlyGrub extends CardImpl {
|
|||
this.addAbility(new VanishingUpkeepAbility(3));
|
||||
this.addAbility(new VanishingSacrificeAbility());
|
||||
// When Deadly Grub dies, if it had no time counters on it, create a 6/1 green Insect creature token with shroud.
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(new DiesTriggeredAbility(new CreateTokenEffect(new DeadlyGrubToken(), 1)),
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new DeadlyGrubToken(), 1)),
|
||||
LastTimeCounterRemovedCondition.instance, "When {this} dies, if it had no time counters on it, create a 6/1 green Insect creature token with shroud."));
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.d;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.constants.SubType;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -25,7 +25,7 @@ public final class DeathbloomThallid extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Deathbloom Thallid dies, create a 1/1 green Saproling creature token.
|
||||
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new SaprolingToken()), false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new SaprolingToken()), false));
|
||||
}
|
||||
|
||||
public DeathbloomThallid(final DeathbloomThallid card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.d;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.LoseLifeAllPlayersEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -24,7 +24,7 @@ public final class DeathcurseOgre extends CardImpl {
|
|||
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
this.addAbility(new DiesTriggeredAbility(new LoseLifeAllPlayersEffect(3)));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new LoseLifeAllPlayersEffect(3)));
|
||||
}
|
||||
|
||||
public DeathcurseOgre (final DeathcurseOgre card) {
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.d;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -27,7 +27,7 @@ public final class DeathpactAngel extends CardImpl {
|
|||
//Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
//When Deathpact Angel dies, create a 1/1 white and black Cleric creature token. It has "{3}{W}{B}{B}, {T}, Sacrifice this creature: Return a card named Deathpact Angel from your graveyard to the battlefield."
|
||||
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new DeathpactAngelToken())));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new DeathpactAngelToken())));
|
||||
}
|
||||
|
||||
public DeathpactAngel(final DeathpactAngel card) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.d;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.continuous.BoostAllEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -28,7 +28,7 @@ public final class DeathsHeadBuzzard extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// When Death's-Head Buzzard dies, all creatures get -1/-1 until end of turn.
|
||||
this.addAbility(new DiesTriggeredAbility(new BoostAllEffect(-1, -1, Duration.EndOfTurn)));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new BoostAllEffect(-1, -1, Duration.EndOfTurn)));
|
||||
}
|
||||
|
||||
public DeathsHeadBuzzard(final DeathsHeadBuzzard card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ import java.util.UUID;
|
|||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.condition.common.DeliriumCondition;
|
||||
import mage.abilities.decorator.ConditionalContinuousEffect;
|
||||
|
@ -32,7 +32,7 @@ public final class DesperateSentry extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Desperate Sentry dies, create a 3/2 colorless Eldrazi Horror creature token.
|
||||
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new EldraziHorrorToken()), false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new EldraziHorrorToken()), false));
|
||||
|
||||
// <i>Delirium</i> — Desperate Sentry gets +3/+0 as long as there are four or more card types among cards in your graveyard.
|
||||
ConditionalContinuousEffect effect = new ConditionalContinuousEffect(
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.d;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -35,7 +35,7 @@ public final class DestructorDragon extends CardImpl {
|
|||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
// When Destructor Dragon dies, destroy target noncreature permanent.
|
||||
Ability ability = new DiesTriggeredAbility(new DestroyTargetEffect(), false);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new DestroyTargetEffect(), false);
|
||||
ability.addTarget(new TargetPermanent(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.d;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.constants.SubType;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -26,7 +26,7 @@ public final class DireFleetHoarder extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Dire Fleet Hoarder dies, create a colorless Treasure artifact token with "{t}, Sacrifice this artifact: Add one mana of any color."
|
||||
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new TreasureToken())));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new TreasureToken())));
|
||||
}
|
||||
|
||||
public DireFleetHoarder(final DireFleetHoarder card) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -25,7 +25,7 @@ public final class DiscordantPiper extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Discordant Piper dies, create a 0/1 white Goat creature token.
|
||||
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new GoatToken())));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new GoatToken())));
|
||||
}
|
||||
|
||||
private DiscordantPiper(final DiscordantPiper card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.d;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -26,7 +26,7 @@ public final class DiseaseCarriers extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Disease Carriers dies, target creature gets -2/-2 until end of turn.
|
||||
Ability ability = new DiesTriggeredAbility(new BoostTargetEffect(-2, -2, Duration.EndOfTurn), false);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new BoostTargetEffect(-2, -2, Duration.EndOfTurn), false);
|
||||
ability.addTarget(new TargetCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.d;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -25,7 +25,7 @@ public final class DoomedDissenter extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Doomed Dissenter dies, create a 2/2 black Zombie creature token.
|
||||
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new ZombieToken())));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new ZombieToken())));
|
||||
}
|
||||
|
||||
public DoomedDissenter(final DoomedDissenter card) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.d;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -26,7 +26,7 @@ public final class DoomedTraveler extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Doomed Traveler dies, create a 1/1 white Spirit creature token with flying.
|
||||
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new SpiritWhiteToken())));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new SpiritWhiteToken())));
|
||||
}
|
||||
|
||||
public DoomedTraveler(final DoomedTraveler card) {
|
||||
|
|
|
@ -2,7 +2,7 @@ package mage.cards.d;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.DefenderAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -28,7 +28,7 @@ public final class DragonEgg extends CardImpl {
|
|||
this.addAbility(DefenderAbility.getInstance());
|
||||
|
||||
// When Dragon Egg dies, create a 2/2 red Dragon creature token with flying. It has "{R}: This creature gets +1/+0 until end of turn".
|
||||
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new DragonEggDragonToken()), false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new DragonEggDragonToken()), false));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.d;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.costs.mana.ColoredManaCost;
|
||||
import mage.abilities.effects.common.DoIfCostPaid;
|
||||
import mage.abilities.effects.common.discard.DiscardTargetEffect;
|
||||
|
@ -29,7 +29,7 @@ public final class DrainpipeVermin extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Drainpipe Vermin dies, you may pay {B}. If you do, target player discards a card.
|
||||
Ability ability = new DiesTriggeredAbility(new DoIfCostPaid(new DiscardTargetEffect(1), new ColoredManaCost(ColoredManaSymbol.B)), false);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new DoIfCostPaid(new DiscardTargetEffect(1), new ColoredManaCost(ColoredManaSymbol.B)), false);
|
||||
ability.addTarget(new TargetPlayer());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.d;
|
|||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DealsCombatDamageToAPlayerTriggeredAbility;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
|
@ -39,7 +39,7 @@ public final class DreadhordeButcher extends CardImpl {
|
|||
), false).setOrPlaneswalker(true));
|
||||
|
||||
// When Dreadhorde Butcher dies, it deals damage equal to its power to any target.
|
||||
Ability ability = new DiesTriggeredAbility(new DamageTargetEffect(
|
||||
Ability ability = new DiesSourceTriggeredAbility(new DamageTargetEffect(
|
||||
new SourcePermanentPowerCount()
|
||||
).setText("it deals damage equal to its power to any target"));
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.d;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.common.ZuberasDiedDynamicValue;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -27,7 +27,7 @@ public final class DrippingTongueZubera extends CardImpl {
|
|||
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(2);
|
||||
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new SpiritToken(), ZuberasDiedDynamicValue.instance), false), new ZuberasDiedWatcher());
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new SpiritToken(), ZuberasDiedDynamicValue.instance), false), new ZuberasDiedWatcher());
|
||||
}
|
||||
|
||||
public DrippingTongueZubera (final DrippingTongueZubera card) {
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.d;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -35,7 +35,7 @@ public final class DriverOfTheDead extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Driver of the Dead dies, return target creature card with converted mana cost 2 or less from your graveyard to the battlefield.
|
||||
Ability ability = new DiesTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect(), false);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new ReturnFromGraveyardToBattlefieldTargetEffect(), false);
|
||||
Target target = new TargetCardInYourGraveyard(filter);
|
||||
ability.addTarget(target);
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.d;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.effects.common.LoseLifeTargetEffect;
|
||||
import mage.abilities.keyword.RepairAbility;
|
||||
|
@ -27,7 +27,7 @@ public final class DroidCommando extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Droid Commando dies, target player loses 2 life and you gain 2 life.
|
||||
Ability ability = new DiesTriggeredAbility(new LoseLifeTargetEffect(2));
|
||||
Ability ability = new DiesSourceTriggeredAbility(new LoseLifeTargetEffect(2));
|
||||
ability.addEffect(new GainLifeEffect(2));
|
||||
ability.addTarget(new TargetPlayer());
|
||||
this.addAbility(ability);
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.d;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.AttacksOrBlocksTriggeredAbility;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.common.CountersSourceCount;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
|
@ -31,7 +31,7 @@ public final class DuskUrchins extends CardImpl {
|
|||
this.addAbility(new AttacksOrBlocksTriggeredAbility(new AddCountersSourceEffect(CounterType.M1M1.createInstance()), false));
|
||||
|
||||
// When Dusk Urchins dies, draw a card for each -1/-1 counter on it.
|
||||
this.addAbility(new DiesTriggeredAbility(new DrawCardSourceControllerEffect(new CountersSourceCount(CounterType.M1M1))));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new DrawCardSourceControllerEffect(new CountersSourceCount(CounterType.M1M1))));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.d;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.ReturnFromGraveyardToHandTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -34,7 +34,7 @@ public final class DutifulAttendant extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Dutiful Ateendant dies, return another target creature card from your graveyard to your hand.
|
||||
Ability ability = new DiesTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect(), false);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new ReturnFromGraveyardToHandTargetEffect(), false);
|
||||
ability.addTarget(new TargetCardInYourGraveyard(filter));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.e;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -31,7 +31,7 @@ public final class ElderCathar extends CardImpl {
|
|||
this.toughness = new MageInt(2);
|
||||
|
||||
// When Elder Cathar dies, put a +1/+1 counter on target creature you control. If that creature is a Human, put two +1/+1 counters on it instead.
|
||||
Ability ability = new DiesTriggeredAbility(new ElderCatharAddCountersTargetEffect(), false);
|
||||
Ability ability = new DiesSourceTriggeredAbility(new ElderCatharAddCountersTargetEffect(), false);
|
||||
ability.addTarget(new TargetControlledCreaturePermanent());
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@ package mage.cards.e;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesCreatureTriggeredAbility;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
|
@ -38,7 +38,7 @@ public final class ElendaTheDuskRose extends CardImpl {
|
|||
this.addAbility(new DiesCreatureTriggeredAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()), false, true));
|
||||
|
||||
// When Elenda dies, create X 1/1 white Vampire creature tokens with lifelink, where X is Elenda's power.
|
||||
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new IxalanVampireToken(), new SourcePermanentPowerCount())));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new IxalanVampireToken(), new SourcePermanentPowerCount())));
|
||||
}
|
||||
|
||||
public ElendaTheDuskRose(final ElendaTheDuskRose card) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.e;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.LifelinkAbility;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -28,7 +28,7 @@ public final class ElgaudInquisitor extends CardImpl {
|
|||
|
||||
this.addAbility(LifelinkAbility.getInstance());
|
||||
// When Elgaud Inquisitor dies, create a 1/1 white Spirit creature token with flying.
|
||||
this.addAbility(new DiesTriggeredAbility(new CreateTokenEffect(new SpiritWhiteToken())));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new SpiritWhiteToken())));
|
||||
}
|
||||
|
||||
public ElgaudInquisitor(final ElgaudInquisitor card) {
|
||||
|
|
|
@ -6,7 +6,7 @@ import java.util.UUID;
|
|||
import mage.MageInt;
|
||||
import mage.MageObject;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -34,7 +34,7 @@ public final class ElvishSoultiller extends CardImpl {
|
|||
this.toughness = new MageInt(4);
|
||||
|
||||
// When Elvish Soultiller dies, choose a creature type. Shuffle all creature cards of that type from your graveyard into your library.
|
||||
addAbility(new DiesTriggeredAbility(new ElvishSoultillerEffect()));
|
||||
addAbility(new DiesSourceTriggeredAbility(new ElvishSoultillerEffect()));
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ package mage.cards.e;
|
|||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.dynamicvalue.common.ZuberasDiedDynamicValue;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
|
@ -28,7 +28,7 @@ public final class EmberFistZubera extends CardImpl {
|
|||
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(2);
|
||||
Ability ability = new DiesTriggeredAbility(new DamageTargetEffect(ZuberasDiedDynamicValue.instance));
|
||||
Ability ability = new DiesSourceTriggeredAbility(new DamageTargetEffect(ZuberasDiedDynamicValue.instance));
|
||||
ability.addTarget(new TargetAnyTarget());
|
||||
this.addAbility(ability, new ZuberasDiedWatcher());
|
||||
}
|
||||
|
|
|
@ -23,6 +23,7 @@ import mage.game.permanent.Permanent;
|
|||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.effects.Effect;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
|
@ -50,12 +51,13 @@ public final class EmielTheBlessed extends CardImpl {
|
|||
ability.addTarget(new TargetPermanent(filter));
|
||||
this.addAbility(ability);
|
||||
|
||||
// Whenever another creature enters the battlefield under your control, you may pay {G/W}. If you do, put a +1/+1 counter on it. If it's a Unicorn, put two +1/+1 counters on it instead.
|
||||
// Whenever another creature enters the battlefield under your control, you may pay {G/W}.
|
||||
// If you do, put a +1/+1 counter on it. If it's a Unicorn, put two +1/+1 counters on it instead.
|
||||
this.addAbility(new EntersBattlefieldControlledTriggeredAbility(
|
||||
Zone.BATTLEFIELD, new DoIfCostPaid(new EmielTheBlessedEffect(), new ManaCostsImpl<>("{G/W}")),
|
||||
StaticFilters.FILTER_CONTROLLED_ANOTHER_CREATURE, false, SetTargetPointer.PERMANENT,
|
||||
"Whenever another creature enters the battlefield under your control, you may pay {G/W}. " +
|
||||
"If you do, put a +1/+1 counter on it. If it's a Unicorn, put two +1/+1 counters on it instead."
|
||||
"Whenever another creature enters the battlefield under your control, you may pay {G/W}. "
|
||||
+ "If you do, put a +1/+1 counter on it. If it's a Unicorn, put two +1/+1 counters on it instead."
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.e;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -23,7 +23,7 @@ public final class EnatuGolem extends CardImpl {
|
|||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(5);
|
||||
|
||||
this.addAbility(new DiesTriggeredAbility(new GainLifeEffect(4), false));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new GainLifeEffect(4), false));
|
||||
}
|
||||
|
||||
public EnatuGolem(final EnatuGolem card) {
|
||||
|
|
|
@ -3,7 +3,7 @@ package mage.cards.e;
|
|||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.common.DiesSourceTriggeredAbility;
|
||||
import mage.abilities.effects.common.ReturnToHandSourceEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
@ -24,7 +24,7 @@ public final class EndlessCockroaches extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Endless Cockroaches dies, return it to its owner's hand.
|
||||
this.addAbility(new DiesTriggeredAbility(new ReturnToHandSourceEffect()));
|
||||
this.addAbility(new DiesSourceTriggeredAbility(new ReturnToHandSourceEffect()));
|
||||
}
|
||||
|
||||
public EndlessCockroaches(final EndlessCockroaches card) {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue