forked from External/mage
63 lines
2.2 KiB
Java
63 lines
2.2 KiB
Java
|
|
package mage.cards.s;
|
|
|
|
import java.util.UUID;
|
|
import mage.MageInt;
|
|
import mage.abilities.Ability;
|
|
import mage.abilities.common.EntersBattlefieldAbility;
|
|
import mage.abilities.common.SimpleActivatedAbility;
|
|
import mage.abilities.costs.common.RemoveCountersSourceCost;
|
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
|
import mage.abilities.effects.common.DestroyTargetEffect;
|
|
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.constants.Zone;
|
|
import mage.counters.CounterType;
|
|
import mage.filter.FilterPermanent;
|
|
import mage.filter.predicate.Predicates;
|
|
import mage.filter.predicate.mageobject.CardTypePredicate;
|
|
import mage.target.TargetPermanent;
|
|
|
|
/**
|
|
*
|
|
* @author Loki
|
|
*/
|
|
public final class Stingmoggie extends CardImpl {
|
|
|
|
private static final FilterPermanent filter = new FilterPermanent("artifact or land");
|
|
|
|
static {
|
|
filter.add(Predicates.or(
|
|
new CardTypePredicate(CardType.ARTIFACT),
|
|
new CardTypePredicate(CardType.LAND)));
|
|
}
|
|
|
|
public Stingmoggie(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{R}");
|
|
this.subtype.add(SubType.ELEMENTAL);
|
|
|
|
this.power = new MageInt(0);
|
|
this.toughness = new MageInt(0);
|
|
|
|
// Stingmoggie enters the battlefield with two +1/+1 counters on it.
|
|
this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance(2)),"with two +1/+1 counters on it"));
|
|
|
|
// {3}{R}, Remove a +1/+1 counter from Stingmoggie: Destroy target artifact or land.
|
|
Ability ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DestroyTargetEffect(), new ManaCostsImpl("{3}{R}"));
|
|
ability.addCost(new RemoveCountersSourceCost(CounterType.P1P1.createInstance(1)));
|
|
ability.addTarget(new TargetPermanent(filter));
|
|
this.addAbility(ability);
|
|
}
|
|
|
|
public Stingmoggie(final Stingmoggie card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public Stingmoggie copy() {
|
|
return new Stingmoggie(this);
|
|
}
|
|
}
|