mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
remove unused param from ProwlAbility
This commit is contained in:
parent
acc175f551
commit
248b78677c
12 changed files with 14 additions and 19 deletions
|
|
@ -37,7 +37,7 @@ public final class AuntiesSnitch extends CardImpl {
|
|||
// Auntie's Snitch can't block.
|
||||
this.addAbility(new CantBlockAbility());
|
||||
// Prowl {1}{B}
|
||||
this.addAbility(new ProwlAbility(this, "{1}{B}"));
|
||||
this.addAbility(new ProwlAbility("{1}{B}"));
|
||||
// Whenever a Goblin or Rogue you control deals combat damage to a player, if Auntie's Snitch is in your graveyard, you may return Auntie's Snitch to your hand.
|
||||
this.addAbility(new AuntiesSnitchTriggeredAbility());
|
||||
}
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ public final class EarwigSquad extends CardImpl {
|
|||
this.toughness = new MageInt(3);
|
||||
|
||||
// Prowl {2}{B}
|
||||
this.addAbility(new ProwlAbility(this, "{2}{B}"));
|
||||
this.addAbility(new ProwlAbility("{2}{B}"));
|
||||
|
||||
// When Earwig Squad enters the battlefield, if its prowl cost was paid, search target opponent's library for three cards and exile them. Then that player shuffles their library.
|
||||
Ability ability = new ConditionalInterveningIfTriggeredAbility(
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public final class EnigmaThief extends CardImpl {
|
|||
this.toughness = new MageInt(5);
|
||||
|
||||
// Prowl {3}{U}
|
||||
this.addAbility(new ProwlAbility(this, "{3}{U}"));
|
||||
this.addAbility(new ProwlAbility("{3}{U}"));
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
|
|
|||
|
|
@ -4,8 +4,6 @@ import java.util.UUID;
|
|||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledSpellsEffect;
|
||||
import mage.abilities.effects.common.cost.SpellsCostReductionControllerEffect;
|
||||
import mage.abilities.keyword.ConvokeAbility;
|
||||
import mage.abilities.keyword.ProwlAbility;
|
||||
import mage.constants.SubType;
|
||||
import mage.abilities.keyword.FirstStrikeAbility;
|
||||
|
|
@ -14,9 +12,7 @@ import mage.cards.CardSetInfo;
|
|||
import mage.constants.CardType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.filter.common.FilterArtifactCard;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.AbilityPredicate;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -45,7 +41,7 @@ public final class HuntingVelociraptor extends CardImpl {
|
|||
// Based on Chief Engineer
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.BATTLEFIELD,
|
||||
new GainAbilityControlledSpellsEffect(new ProwlAbility(null, "{2}{R}"), filter)
|
||||
new GainAbilityControlledSpellsEffect(new ProwlAbility("{2}{R}"), filter)
|
||||
));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public final class KnowledgeExploitation extends CardImpl {
|
|||
this.subtype.add(SubType.ROGUE);
|
||||
|
||||
// Prowl {3}{U}
|
||||
this.addAbility(new ProwlAbility(this, "{3}{U}"));
|
||||
this.addAbility(new ProwlAbility("{3}{U}"));
|
||||
|
||||
// Search target opponent's library for an instant or sorcery card.
|
||||
// You may cast that card without paying its mana cost.
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ public final class LatchkeyFaerie extends CardImpl {
|
|||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// Prowl {2}{U}
|
||||
this.addAbility(new ProwlAbility(this, "{2}{U}"));
|
||||
this.addAbility(new ProwlAbility("{2}{U}"));
|
||||
|
||||
// When Latchkey Faerie enters the battlefield, if its prowl cost was paid, draw a card.
|
||||
EntersBattlefieldTriggeredAbility ability = new EntersBattlefieldTriggeredAbility(new DrawCardSourceControllerEffect(1), false);
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public final class MorselTheft extends CardImpl {
|
|||
this.subtype.add(SubType.ROGUE);
|
||||
|
||||
// Prowl {1}{B}
|
||||
this.addAbility(new ProwlAbility(this, "{1}{B}"));
|
||||
this.addAbility(new ProwlAbility("{1}{B}"));
|
||||
|
||||
// Target player loses 3 life and you gain 3 life. If Morsel Theft's prowl cost was paid, draw a card.
|
||||
getSpellAbility().addEffect(new LoseLifeTargetEffect(3));
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ public final class NogginWhack extends CardImpl {
|
|||
this.subtype.add(SubType.ROGUE);
|
||||
|
||||
// Prowl {1}{B}
|
||||
this.addAbility(new ProwlAbility(this, "{1}{B}"));
|
||||
this.addAbility(new ProwlAbility("{1}{B}"));
|
||||
// Target player reveals three cards from their hand. You choose two of them. That player discards those cards.
|
||||
this.getSpellAbility().addEffect(new DiscardCardYouChooseTargetEffect(2, 3));
|
||||
this.getSpellAbility().addTarget(new TargetPlayer());
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ public final class NotoriousThrong extends CardImpl {
|
|||
this.subtype.add(SubType.ROGUE);
|
||||
|
||||
// Prowl {5}{U}
|
||||
this.addAbility(new ProwlAbility(this, "{5}{U}"));
|
||||
this.addAbility(new ProwlAbility("{5}{U}"));
|
||||
|
||||
// create X 1/1 black Faerie Rogue creature tokens with flying, where X is the damage dealt to your opponents this turn.
|
||||
this.getSpellAbility().addEffect(new NotoriousThrongEffect());
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public final class StinkdrinkerBandit extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// Prowl {1}, {B} (You may cast this for its prowl cost if you dealt combat damage to a player this turn with a Goblin or Rogue.)
|
||||
this.addAbility(new ProwlAbility(this, "{1}{B}"));
|
||||
this.addAbility(new ProwlAbility("{1}{B}"));
|
||||
|
||||
// Whenever a Rogue you control attacks and isn't blocked, it gets +2/+1 until end of turn.
|
||||
this.addAbility(new StinkdrinkerBanditTriggeredAbility());
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ public final class ThievesFortune extends CardImpl {
|
|||
this.subtype.add(SubType.ROGUE);
|
||||
|
||||
// Prowl {U}
|
||||
this.addAbility(new ProwlAbility(this, "{U}"));
|
||||
this.addAbility(new ProwlAbility("{U}"));
|
||||
|
||||
// Look at the top four cards of your library. Put one of them into your hand and the rest on the bottom of your library in any order.
|
||||
this.getSpellAbility().addEffect(new LookLibraryAndPickControllerEffect(4, 1, PutCards.HAND, PutCards.BOTTOM_ANY));
|
||||
|
|
|
|||
|
|
@ -4,7 +4,6 @@ import mage.abilities.Ability;
|
|||
import mage.abilities.condition.common.ProwlCondition;
|
||||
import mage.abilities.costs.AlternativeSourceCostsImpl;
|
||||
import mage.abilities.hint.common.ProwlHint;
|
||||
import mage.cards.Card;
|
||||
import mage.game.Game;
|
||||
import mage.watchers.common.ProwlWatcher;
|
||||
|
||||
|
|
@ -23,11 +22,11 @@ import mage.watchers.common.ProwlWatcher;
|
|||
public class ProwlAbility extends AlternativeSourceCostsImpl {
|
||||
|
||||
private static final String PROWL_KEYWORD = "Prowl";
|
||||
private static final String reminderText = "You may cast this for its prowl cost if you dealt combat damage to a "
|
||||
private static final String PROWL_REMINDER = "You may cast this for its prowl cost if you dealt combat damage to a "
|
||||
+ "player this turn with a creature that shared a creature type with {this}";
|
||||
|
||||
public ProwlAbility(Card card, String manaString) {
|
||||
super(PROWL_KEYWORD, reminderText, manaString);
|
||||
public ProwlAbility(String manaString) {
|
||||
super(PROWL_KEYWORD, PROWL_REMINDER, manaString);
|
||||
this.setRuleAtTheTop(true);
|
||||
this.addWatcher(new ProwlWatcher());
|
||||
this.addHint(ProwlHint.instance);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue