mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Implemented Runaway Steam-Kin
This commit is contained in:
parent
08fb65f4d2
commit
09f41d9b6a
2 changed files with 70 additions and 0 deletions
69
Mage.Sets/src/mage/cards/r/RunawaySteamKin.java
Normal file
69
Mage.Sets/src/mage/cards/r/RunawaySteamKin.java
Normal file
|
@ -0,0 +1,69 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.Mana;
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.condition.common.SourceHasCounterCondition;
|
||||
import mage.abilities.costs.common.RemoveCountersSourceCost;
|
||||
import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.abilities.mana.SimpleManaAbility;
|
||||
import mage.constants.SubType;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Zone;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.predicate.mageobject.ColorPredicate;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RunawaySteamKin extends CardImpl {
|
||||
|
||||
private static final FilterSpell filter = new FilterSpell("a red spell");
|
||||
|
||||
static {
|
||||
filter.add(new ColorPredicate(ObjectColor.RED));
|
||||
}
|
||||
|
||||
public RunawaySteamKin(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
|
||||
|
||||
this.subtype.add(SubType.ELEMENTAL);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Whenever you cast a red spell, if Runaway Steam-Kin has fewer than three +1/+1 counters on it, put a +1/+1 counter on Runaway Steam-Kin.
|
||||
this.addAbility(new ConditionalInterveningIfTriggeredAbility(
|
||||
new SpellCastControllerTriggeredAbility(
|
||||
new AddCountersSourceEffect(
|
||||
CounterType.P1P1.createInstance()
|
||||
), false
|
||||
), new SourceHasCounterCondition(CounterType.P1P1, 0, 2),
|
||||
"Whenever you cast a red spell, "
|
||||
+ "if {this} has fewer than three +1/+1 counters on it, "
|
||||
+ "put a +1/+1 counter on {this}."
|
||||
));
|
||||
|
||||
// Remove three +1/+1 counters from Runaway Steam-Kin: Add {R}{R}{R}.
|
||||
this.addAbility(new SimpleManaAbility(
|
||||
Zone.BATTLEFIELD,
|
||||
Mana.RedMana(3),
|
||||
new RemoveCountersSourceCost(CounterType.P1P1.createInstance(3))
|
||||
));
|
||||
}
|
||||
|
||||
public RunawaySteamKin(final RunawaySteamKin card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RunawaySteamKin copy() {
|
||||
return new RunawaySteamKin(this);
|
||||
}
|
||||
}
|
|
@ -75,6 +75,7 @@ public final class GuildsOfRavnica extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Ral, Izzet Viceroy", 195, Rarity.MYTHIC, mage.cards.r.RalIzzetViceroy.class));
|
||||
cards.add(new SetCardInfo("Response // Resurgence", 229, Rarity.RARE, mage.cards.r.ResponseResurgence.class));
|
||||
cards.add(new SetCardInfo("Rosemane Centaur", 197, Rarity.COMMON, mage.cards.r.RosemaneCentaur.class));
|
||||
cards.add(new SetCardInfo("Runaway Steam-Kin", 115, Rarity.RARE, mage.cards.r.RunawaySteamKin.class));
|
||||
cards.add(new SetCardInfo("Sacred Foundry", 254, Rarity.RARE, mage.cards.s.SacredFoundry.class));
|
||||
cards.add(new SetCardInfo("Selesnya Guildgate", 255, Rarity.COMMON, mage.cards.s.SelesnyaGuildgate.class));
|
||||
cards.add(new SetCardInfo("Selesnya Guildgate", 256, Rarity.COMMON, mage.cards.s.SelesnyaGuildgate.class));
|
||||
|
|
Loading…
Reference in a new issue