mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Skirk Prospector - Fixed wrong cost of the activated ability.
This commit is contained in:
parent
6b582109a2
commit
59356254f5
1 changed files with 11 additions and 1 deletions
|
@ -34,9 +34,13 @@ import mage.constants.Rarity;
|
|||
import mage.MageInt;
|
||||
import mage.Mana;
|
||||
import mage.abilities.costs.common.SacrificeSourceCost;
|
||||
import mage.abilities.costs.common.SacrificeTargetCost;
|
||||
import mage.abilities.mana.SimpleManaAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.SubtypePredicate;
|
||||
import mage.target.common.TargetControlledCreaturePermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -44,6 +48,12 @@ import mage.constants.Zone;
|
|||
*/
|
||||
public class SkirkProspector extends CardImpl {
|
||||
|
||||
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("a Goblin");
|
||||
|
||||
static {
|
||||
filter.add(new SubtypePredicate(("Goblin")));
|
||||
}
|
||||
|
||||
public SkirkProspector(UUID ownerId) {
|
||||
super(ownerId, 230, "Skirk Prospector", Rarity.COMMON, new CardType[]{CardType.CREATURE}, "{R}");
|
||||
this.expansionSetCode = "ONS";
|
||||
|
@ -54,7 +64,7 @@ public class SkirkProspector extends CardImpl {
|
|||
this.toughness = new MageInt(1);
|
||||
|
||||
// Sacrifice a Goblin: Add {R} to your mana pool.
|
||||
this.addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana, new SacrificeSourceCost()));
|
||||
this.addAbility(new SimpleManaAbility(Zone.BATTLEFIELD, Mana.RedMana, new SacrificeTargetCost(new TargetControlledCreaturePermanent(1,1,filter,true))));
|
||||
}
|
||||
|
||||
public SkirkProspector(final SkirkProspector card) {
|
||||
|
|
Loading…
Reference in a new issue