forked from External/mage
added Magmaroth (HOU)
This commit is contained in:
parent
1afcebc51a
commit
8f0e043361
1 changed files with 45 additions and 1 deletions
|
|
@ -1,4 +1,48 @@
|
|||
package mage.cards.m;
|
||||
|
||||
public class Magmaroth {
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.BeginningOfUpkeepTriggeredAbility;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.abilities.effects.common.counter.RemoveCounterSourceEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public class Magmaroth extends CardImpl{
|
||||
|
||||
private static final FilterSpell filterNonCreature = new FilterSpell("a noncreature spell");
|
||||
|
||||
static {
|
||||
filterNonCreature.add(Predicates.not(new CardTypePredicate(CardType.CREATURE)));
|
||||
}
|
||||
|
||||
public Magmaroth(UUID ownerId, CardSetInfo cardSetInfo){
|
||||
super(ownerId, cardSetInfo, new CardType[]{CardType.CREATURE}, "{3}{R}");
|
||||
subtype.add("Elemental");
|
||||
power = new MageInt(5);
|
||||
toughness = new MageInt(5);
|
||||
|
||||
// At the beginning of your upkeep, put a -1/-1 counter on Magmaroth
|
||||
addAbility(new BeginningOfUpkeepTriggeredAbility(new AddCountersSourceEffect(CounterType.M1M1.createInstance()), TargetController.YOU, false));
|
||||
|
||||
// Whenever you cast a noncreature spell, remove a -1/-1 counter from Magmaroth
|
||||
addAbility(new SpellCastControllerTriggeredAbility(new RemoveCounterSourceEffect(CounterType.M1M1.createInstance()), filterNonCreature, false));
|
||||
|
||||
}
|
||||
|
||||
public Magmaroth(final Magmaroth magmaroth){
|
||||
super(magmaroth);
|
||||
}
|
||||
|
||||
public Magmaroth copy(){
|
||||
return new Magmaroth(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue