forked from External/mage
44 lines
1.4 KiB
Java
44 lines
1.4 KiB
Java
|
|
package mage.cards.f;
|
|
|
|
import java.util.UUID;
|
|
import mage.MageInt;
|
|
import mage.abilities.common.EntersBattlefieldAbility;
|
|
import mage.abilities.condition.common.MorbidCondition;
|
|
import mage.abilities.decorator.ConditionalOneShotEffect;
|
|
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
|
import mage.abilities.keyword.TrampleAbility;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.counters.CounterType;
|
|
|
|
/**
|
|
*
|
|
* @author North
|
|
*/
|
|
public final class FesterhideBoar extends CardImpl {
|
|
|
|
public FesterhideBoar(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{3}{G}");
|
|
this.subtype.add(SubType.BOAR);
|
|
|
|
this.power = new MageInt(3);
|
|
this.toughness = new MageInt(3);
|
|
|
|
this.addAbility(TrampleAbility.getInstance());
|
|
// <i>Morbid</i> — Festerhide Boar enters the battlefield with two +1/+1 counters on it if a creature died this turn.
|
|
this.addAbility(new EntersBattlefieldAbility(new ConditionalOneShotEffect(new AddCountersSourceEffect(CounterType.P1P1.createInstance(2)),
|
|
MorbidCondition.instance, ""), "with two +1/+1 counters on it if a creature died this turn"));
|
|
}
|
|
|
|
public FesterhideBoar(final FesterhideBoar card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public FesterhideBoar copy() {
|
|
return new FesterhideBoar(this);
|
|
}
|
|
}
|