forked from External/mage
52 lines
1.8 KiB
Java
52 lines
1.8 KiB
Java
|
|
package mage.cards.s;
|
|
|
|
import java.util.UUID;
|
|
import mage.MageInt;
|
|
import mage.abilities.common.AttacksTriggeredAbility;
|
|
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
|
import mage.abilities.costs.common.PayEnergyCost;
|
|
import mage.abilities.effects.common.DoIfCostPaid;
|
|
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
|
import mage.abilities.effects.common.counter.GetEnergyCountersControllerEffect;
|
|
import mage.abilities.keyword.DoubleStrikeAbility;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.counters.CounterType;
|
|
|
|
/**
|
|
*
|
|
* @author fireshoes
|
|
*/
|
|
public final class ScrapperChampion extends CardImpl {
|
|
|
|
public ScrapperChampion(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{R}");
|
|
|
|
this.subtype.add(SubType.HUMAN);
|
|
this.subtype.add(SubType.ARTIFICER);
|
|
this.power = new MageInt(2);
|
|
this.toughness = new MageInt(2);
|
|
|
|
// Double strike
|
|
this.addAbility(DoubleStrikeAbility.getInstance());
|
|
|
|
// When Scrapper Champion enters the battlefield, you get {E}{E}.
|
|
this.addAbility(new EntersBattlefieldTriggeredAbility(new GetEnergyCountersControllerEffect(2)));
|
|
|
|
// Whenever Scrapper Champion attacks, you may pay {E}{E}. If you do, put a +1/+1 counter on it.
|
|
this.addAbility(new AttacksTriggeredAbility(new DoIfCostPaid(new AddCountersSourceEffect(CounterType.P1P1.createInstance(1)), new PayEnergyCost(2)), false,
|
|
"Whenever {this} attacks, you may pay {E}{E}. If you do, put a +1/+1 counter on it."));
|
|
}
|
|
|
|
public ScrapperChampion(final ScrapperChampion card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public ScrapperChampion copy() {
|
|
return new ScrapperChampion(this);
|
|
}
|
|
}
|