mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Implemented Savvy Hunter
This commit is contained in:
parent
2da8bbad5c
commit
a366ec019f
3 changed files with 60 additions and 4 deletions
52
Mage.Sets/src/mage/cards/s/SavvyHunter.java
Normal file
52
Mage.Sets/src/mage/cards/s/SavvyHunter.java
Normal file
|
@ -0,0 +1,52 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.AttacksOrBlocksTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.game.permanent.token.FoodToken;
|
||||
import mage.target.common.TargetControlledPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SavvyHunter extends CardImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent(SubType.FOOD, "Foods");
|
||||
|
||||
public SavvyHunter(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}{G}");
|
||||
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.WARRIOR);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Whenever Savvy Hunter attacks or blocks, create a Food token.
|
||||
this.addAbility(new AttacksOrBlocksTriggeredAbility(new CreateTokenEffect(new FoodToken()), false));
|
||||
|
||||
// Sacrifice two Foods: Draw a card.
|
||||
this.addAbility(new SimpleActivatedAbility(
|
||||
new DrawCardSourceControllerEffect(1),
|
||||
new SacrificeTargetCost(new TargetControlledPermanent(2, filter))
|
||||
));
|
||||
}
|
||||
|
||||
private SavvyHunter(final SavvyHunter card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SavvyHunter copy() {
|
||||
return new SavvyHunter(this);
|
||||
}
|
||||
}
|
|
@ -52,6 +52,7 @@ public final class ThroneOfEldraine extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Maraleaf Pixie", 196, Rarity.UNCOMMON, mage.cards.m.MaraleafPixie.class));
|
||||
cards.add(new SetCardInfo("Rankle, Master of Pranks", 101, Rarity.MYTHIC, mage.cards.r.RankleMasterOfPranks.class));
|
||||
cards.add(new SetCardInfo("Run Away Together", 62, Rarity.COMMON, mage.cards.r.RunAwayTogether.class));
|
||||
cards.add(new SetCardInfo("Savvy Hunter", 200, Rarity.UNCOMMON, mage.cards.s.SavvyHunter.class));
|
||||
cards.add(new SetCardInfo("Shinechaser", 201, Rarity.UNCOMMON, mage.cards.s.Shinechaser.class));
|
||||
cards.add(new SetCardInfo("Shining Armor", 29, Rarity.COMMON, mage.cards.s.ShiningArmor.class));
|
||||
cards.add(new SetCardInfo("Silverflame Ritual", 30, Rarity.COMMON, mage.cards.s.SilverflameRitual.class));
|
||||
|
|
|
@ -5,21 +5,24 @@ import mage.filter.common.FilterControlledPermanent;
|
|||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class TargetControlledPermanent extends TargetPermanent {
|
||||
|
||||
public TargetControlledPermanent() {
|
||||
this(1, 1, StaticFilters.FILTER_CONTROLLED_PERMANENT, false);
|
||||
this(1);
|
||||
}
|
||||
|
||||
public TargetControlledPermanent(int numTargets) {
|
||||
this(numTargets, numTargets, StaticFilters.FILTER_CONTROLLED_PERMANENT, false);
|
||||
this(numTargets, StaticFilters.FILTER_CONTROLLED_PERMANENT);
|
||||
}
|
||||
|
||||
public TargetControlledPermanent(FilterControlledPermanent filter) {
|
||||
this(1, 1, filter, false);
|
||||
this(1, filter);
|
||||
}
|
||||
|
||||
public TargetControlledPermanent(int numTargets, FilterControlledPermanent filter) {
|
||||
this(numTargets, numTargets, filter, false);
|
||||
}
|
||||
|
||||
public TargetControlledPermanent(int minNumTargets, int maxNumTargets, FilterControlledPermanent filter, boolean notTarget) {
|
||||
|
|
Loading…
Reference in a new issue