mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 22:42:03 -08:00
Rename BecomesTappedTriggeredAbility -> BecomesTappedSourceTriggeredAbility
This commit is contained in:
parent
bddb9999aa
commit
f133854db1
7 changed files with 38 additions and 38 deletions
|
|
@ -31,7 +31,7 @@ import java.util.UUID;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.common.BecomesTappedTriggeredAbility;
|
import mage.abilities.common.BecomesTappedSourceTriggeredAbility;
|
||||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
|
|
||||||
|
|
@ -51,7 +51,7 @@ public class Fallowsage extends CardImpl {
|
||||||
this.toughness = new MageInt(2);
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
// Whenever Fallowsage becomes tapped, you may draw a card.
|
// Whenever Fallowsage becomes tapped, you may draw a card.
|
||||||
this.addAbility(new BecomesTappedTriggeredAbility(new DrawCardSourceControllerEffect(1)));
|
this.addAbility(new BecomesTappedSourceTriggeredAbility(new DrawCardSourceControllerEffect(1)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public Fallowsage(final Fallowsage card) {
|
public Fallowsage(final Fallowsage card) {
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ import mage.constants.CardType;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.BecomesTappedTriggeredAbility;
|
import mage.abilities.common.BecomesTappedSourceTriggeredAbility;
|
||||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||||
import mage.abilities.effects.common.DoIfCostPaid;
|
import mage.abilities.effects.common.DoIfCostPaid;
|
||||||
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
import mage.abilities.effects.common.ReturnToHandTargetEffect;
|
||||||
|
|
@ -55,7 +55,7 @@ public class Surgespanner extends CardImpl {
|
||||||
this.toughness = new MageInt(2);
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
// Whenever Surgespanner becomes tapped, you may pay {1}{U}. If you do, return target permanent to its owner's hand.
|
// Whenever Surgespanner becomes tapped, you may pay {1}{U}. If you do, return target permanent to its owner's hand.
|
||||||
Ability ability = new BecomesTappedTriggeredAbility(new DoIfCostPaid(new ReturnToHandTargetEffect(), new ManaCostsImpl("{1}{U}")));
|
Ability ability = new BecomesTappedSourceTriggeredAbility(new DoIfCostPaid(new ReturnToHandTargetEffect(), new ManaCostsImpl("{1}{U}")));
|
||||||
ability.addTarget(new TargetPermanent());
|
ability.addTarget(new TargetPermanent());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -34,7 +34,7 @@ import java.util.UUID;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.MageObject;
|
import mage.MageObject;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.BecomesTappedTriggeredAbility;
|
import mage.abilities.common.BecomesTappedSourceTriggeredAbility;
|
||||||
import mage.abilities.common.SimpleActivatedAbility;
|
import mage.abilities.common.SimpleActivatedAbility;
|
||||||
import mage.abilities.common.SimpleStaticAbility;
|
import mage.abilities.common.SimpleStaticAbility;
|
||||||
import mage.abilities.costs.common.SacrificeSourceCost;
|
import mage.abilities.costs.common.SacrificeSourceCost;
|
||||||
|
|
@ -77,7 +77,7 @@ public class GrimoireThief extends CardImpl {
|
||||||
this.toughness = new MageInt(2);
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
// Whenever Grimoire Thief becomes tapped, exile the top three cards of target opponent's library face down.
|
// Whenever Grimoire Thief becomes tapped, exile the top three cards of target opponent's library face down.
|
||||||
Ability ability = new BecomesTappedTriggeredAbility(new GrimoireThiefExileEffect(), false);
|
Ability ability = new BecomesTappedSourceTriggeredAbility(new GrimoireThiefExileEffect(), false);
|
||||||
ability.addTarget(new TargetOpponent());
|
ability.addTarget(new TargetOpponent());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ package mage.sets.morningtide;
|
||||||
|
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.common.BecomesTappedTriggeredAbility;
|
import mage.abilities.common.BecomesTappedSourceTriggeredAbility;
|
||||||
import mage.abilities.effects.common.CreateTokenEffect;
|
import mage.abilities.effects.common.CreateTokenEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
|
@ -51,7 +51,7 @@ public class StonybrookSchoolmaster extends CardImpl {
|
||||||
this.toughness = new MageInt(2);
|
this.toughness = new MageInt(2);
|
||||||
|
|
||||||
// Whenever Stonybrook Schoolmaster becomes tapped, you may put a 1/1 blue Merfolk Wizard creature token onto the battlefield.
|
// Whenever Stonybrook Schoolmaster becomes tapped, you may put a 1/1 blue Merfolk Wizard creature token onto the battlefield.
|
||||||
this.addAbility(new BecomesTappedTriggeredAbility(new CreateTokenEffect(new MerfolkWizardToken()), true));
|
this.addAbility(new BecomesTappedSourceTriggeredAbility(new CreateTokenEffect(new MerfolkWizardToken()), true));
|
||||||
}
|
}
|
||||||
|
|
||||||
public StonybrookSchoolmaster(final StonybrookSchoolmaster card) {
|
public StonybrookSchoolmaster(final StonybrookSchoolmaster card) {
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ package mage.sets.seventhedition;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.abilities.common.BecomesTappedTriggeredAbility;
|
import mage.abilities.common.BecomesTappedSourceTriggeredAbility;
|
||||||
import mage.abilities.effects.common.DamageControllerEffect;
|
import mage.abilities.effects.common.DamageControllerEffect;
|
||||||
import mage.abilities.mana.AnyColorManaAbility;
|
import mage.abilities.mana.AnyColorManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
|
|
@ -46,7 +46,7 @@ public class CityOfBrass extends CardImpl {
|
||||||
this.expansionSetCode = "7ED";
|
this.expansionSetCode = "7ED";
|
||||||
|
|
||||||
// Whenever City of Brass becomes tapped, it deals 1 damage to you.
|
// Whenever City of Brass becomes tapped, it deals 1 damage to you.
|
||||||
this.addAbility(new BecomesTappedTriggeredAbility(new DamageControllerEffect(1)));
|
this.addAbility(new BecomesTappedSourceTriggeredAbility(new DamageControllerEffect(1)));
|
||||||
|
|
||||||
// {tap}: Add one mana of any color to your mana pool.
|
// {tap}: Add one mana of any color to your mana pool.
|
||||||
this.addAbility(new AnyColorManaAbility());
|
this.addAbility(new AnyColorManaAbility());
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ import mage.constants.CardType;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.MageInt;
|
import mage.MageInt;
|
||||||
import mage.abilities.Ability;
|
import mage.abilities.Ability;
|
||||||
import mage.abilities.common.BecomesTappedTriggeredAbility;
|
import mage.abilities.common.BecomesTappedSourceTriggeredAbility;
|
||||||
import mage.abilities.effects.common.DamageTargetEffect;
|
import mage.abilities.effects.common.DamageTargetEffect;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.target.common.TargetCreatureOrPlayer;
|
import mage.target.common.TargetCreatureOrPlayer;
|
||||||
|
|
@ -53,7 +53,7 @@ public class GoblinMedics extends CardImpl {
|
||||||
this.toughness = new MageInt(1);
|
this.toughness = new MageInt(1);
|
||||||
|
|
||||||
// Whenever Goblin Medics becomes tapped, it deals 1 damage to target creature or player.
|
// Whenever Goblin Medics becomes tapped, it deals 1 damage to target creature or player.
|
||||||
Ability ability = new BecomesTappedTriggeredAbility(new DamageTargetEffect(1));
|
Ability ability = new BecomesTappedSourceTriggeredAbility(new DamageTargetEffect(1));
|
||||||
ability.addTarget(new TargetCreatureOrPlayer());
|
ability.addTarget(new TargetCreatureOrPlayer());
|
||||||
this.addAbility(ability);
|
this.addAbility(ability);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,23 +38,23 @@ import mage.game.events.GameEvent.EventType;
|
||||||
*
|
*
|
||||||
* @author nantuko
|
* @author nantuko
|
||||||
*/
|
*/
|
||||||
public class BecomesTappedTriggeredAbility extends TriggeredAbilityImpl {
|
public class BecomesTappedSourceTriggeredAbility extends TriggeredAbilityImpl {
|
||||||
|
|
||||||
public BecomesTappedTriggeredAbility(Effect effect, boolean isOptional) {
|
public BecomesTappedSourceTriggeredAbility(Effect effect, boolean isOptional) {
|
||||||
super(Zone.BATTLEFIELD, effect, isOptional);
|
super(Zone.BATTLEFIELD, effect, isOptional);
|
||||||
}
|
}
|
||||||
|
|
||||||
public BecomesTappedTriggeredAbility(Effect effect) {
|
public BecomesTappedSourceTriggeredAbility(Effect effect) {
|
||||||
super(Zone.BATTLEFIELD, effect);
|
super(Zone.BATTLEFIELD, effect);
|
||||||
}
|
}
|
||||||
|
|
||||||
public BecomesTappedTriggeredAbility(final BecomesTappedTriggeredAbility ability) {
|
public BecomesTappedSourceTriggeredAbility(final BecomesTappedSourceTriggeredAbility ability) {
|
||||||
super(ability);
|
super(ability);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BecomesTappedTriggeredAbility copy() {
|
public BecomesTappedSourceTriggeredAbility copy() {
|
||||||
return new BecomesTappedTriggeredAbility(this);
|
return new BecomesTappedSourceTriggeredAbility(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
Loading…
Add table
Add a link
Reference in a new issue