mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[MH2] Implemented Gilt-Blade Prowler
This commit is contained in:
parent
acb8070d6b
commit
d3be492f8c
3 changed files with 58 additions and 0 deletions
52
Mage.Sets/src/mage/cards/g/GiltBladeProwler.java
Normal file
52
Mage.Sets/src/mage/cards/g/GiltBladeProwler.java
Normal file
|
@ -0,0 +1,52 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.ActivateIfConditionActivatedAbility;
|
||||
import mage.abilities.condition.common.ControllerDiscardedThisTurnCondition;
|
||||
import mage.abilities.costs.common.PayLifeCost;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.abilities.hint.common.ControllerDiscardedHint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.watchers.common.DiscardedCardWatcher;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class GiltBladeProwler extends CardImpl {
|
||||
|
||||
public GiltBladeProwler(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.ROGUE);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// {1}, {T}, Pay 1 life: Draw a card. Activate only if you've discarded a card this turn.
|
||||
Ability ability = new ActivateIfConditionActivatedAbility(
|
||||
Zone.BATTLEFIELD, new DrawCardSourceControllerEffect(1),
|
||||
new GenericManaCost(1), ControllerDiscardedThisTurnCondition.instance
|
||||
);
|
||||
ability.addCost(new TapSourceCost());
|
||||
ability.addCost(new PayLifeCost(1));
|
||||
this.addAbility(ability.addHint(ControllerDiscardedHint.instance), new DiscardedCardWatcher());
|
||||
}
|
||||
|
||||
private GiltBladeProwler(final GiltBladeProwler card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GiltBladeProwler copy() {
|
||||
return new GiltBladeProwler(this);
|
||||
}
|
||||
}
|
|
@ -121,6 +121,7 @@ public final class ModernHorizons2 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("General Ferrous Rokiric", 198, Rarity.RARE, mage.cards.g.GeneralFerrousRokiric.class));
|
||||
cards.add(new SetCardInfo("Geyadrone Dihada", 199, Rarity.MYTHIC, mage.cards.g.GeyadroneDihada.class));
|
||||
cards.add(new SetCardInfo("Ghost-Lit Drifter", 45, Rarity.UNCOMMON, mage.cards.g.GhostLitDrifter.class));
|
||||
cards.add(new SetCardInfo("Gilt-Blade Prowler", 86, Rarity.COMMON, mage.cards.g.GiltBladeProwler.class));
|
||||
cards.add(new SetCardInfo("Glimmer Bairn", 163, Rarity.COMMON, mage.cards.g.GlimmerBairn.class));
|
||||
cards.add(new SetCardInfo("Glinting Creeper", 164, Rarity.UNCOMMON, mage.cards.g.GlintingCreeper.class));
|
||||
cards.add(new SetCardInfo("Glorious Enforcer", 14, Rarity.UNCOMMON, mage.cards.g.GloriousEnforcer.class));
|
||||
|
|
|
@ -15,4 +15,9 @@ public enum ControllerDiscardedThisTurnCondition implements Condition {
|
|||
public boolean apply(Game game, Ability source) {
|
||||
return DiscardedCardWatcher.checkPlayerDiscarded(source.getControllerId(), game);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "you've discarded a card this turn";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue