forked from External/mage
52 lines
1.6 KiB
Java
52 lines
1.6 KiB
Java
|
|
package mage.cards.h;
|
|
|
|
import java.util.UUID;
|
|
import mage.MageInt;
|
|
import mage.abilities.common.SimpleActivatedAbility;
|
|
import mage.abilities.common.SimpleStaticAbility;
|
|
import mage.abilities.costs.mana.ManaCostsImpl;
|
|
import mage.abilities.effects.common.RegenerateSourceEffect;
|
|
import mage.abilities.effects.common.continuous.BoostSourceWhileControlsEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.constants.SubType;
|
|
import mage.constants.Zone;
|
|
import mage.filter.FilterPermanent;
|
|
|
|
/**
|
|
*
|
|
* @author fireshoes
|
|
*/
|
|
public final class HedgeTroll extends CardImpl {
|
|
|
|
private static final FilterPermanent filter = new FilterPermanent("Plains");
|
|
|
|
static {
|
|
filter.add(SubType.PLAINS.getPredicate());
|
|
}
|
|
|
|
public HedgeTroll(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.CREATURE},"{2}{G}");
|
|
this.subtype.add(SubType.TROLL);
|
|
this.subtype.add(SubType.CLERIC);
|
|
this.power = new MageInt(2);
|
|
this.toughness = new MageInt(2);
|
|
|
|
// Hedge Troll gets +1/+1 as long as you control a Plains.
|
|
this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostSourceWhileControlsEffect(filter, 1, 1)));
|
|
|
|
// {W}: Regenerate Hedge Troll.
|
|
this.addAbility(new SimpleActivatedAbility(Zone.BATTLEFIELD, new RegenerateSourceEffect(), new ManaCostsImpl<>("{W}")));
|
|
}
|
|
|
|
private HedgeTroll(final HedgeTroll card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public HedgeTroll copy() {
|
|
return new HedgeTroll(this);
|
|
}
|
|
}
|