forked from External/mage
46 lines
1.3 KiB
Java
46 lines
1.3 KiB
Java
package mage.cards.f;
|
|
|
|
import java.util.UUID;
|
|
import mage.MageInt;
|
|
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
|
import mage.abilities.effects.common.continuous.BoostSourceEffect;
|
|
import mage.constants.SubType;
|
|
import mage.abilities.keyword.TrampleAbility;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.Duration;
|
|
import mage.filter.StaticFilters;
|
|
|
|
/**
|
|
*
|
|
* @author TheElk801
|
|
*/
|
|
public final class FireUrchin extends CardImpl {
|
|
|
|
public FireUrchin(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(3);
|
|
|
|
// Trample
|
|
this.addAbility(TrampleAbility.getInstance());
|
|
|
|
// Whenever you cast an instant or sorcery spell, Fire Urchin gets +1/+0 until end of turn.
|
|
this.addAbility(new SpellCastControllerTriggeredAbility(
|
|
new BoostSourceEffect(1, 0, Duration.EndOfTurn),
|
|
StaticFilters.FILTER_SPELL_AN_INSTANT_OR_SORCERY, false
|
|
));
|
|
}
|
|
|
|
public FireUrchin(final FireUrchin card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public FireUrchin copy() {
|
|
return new FireUrchin(this);
|
|
}
|
|
}
|