Implement Stonecoil Serpent

This commit is contained in:
Matthaios Tsiridis 2019-09-16 22:35:50 +03:00
parent 11d40d32d4
commit 26c21379b7

View file

@ -0,0 +1,55 @@
package mage.cards.s;
import mage.MageInt;
import mage.abilities.common.EntersBattlefieldAbility;
import mage.abilities.effects.common.EntersBattlefieldWithXCountersEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.counters.CounterType;
import mage.abilities.keyword.ProtectionAbility;
import mage.filter.predicate.mageobject.MulticoloredPredicate;
import mage.filter.FilterObject;
import mage.abilities.keyword.ReachAbility;
import mage.abilities.keyword.TrampleAbility;
import java.util.UUID;
/**
*
* @author Tsirides
*/
public final class StonecoilSerpent extends CardImpl {
private static final FilterObject filter = new FilterObject("multicolored");
static {
filter.add(MulticoloredPredicate.instance);
}
public StonecoilSerpent(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.ARTIFACT,CardType.CREATURE},"{X}");
this.subtype.add(SubType.SNAKE);
this.power = new MageInt(0);
this.toughness = new MageInt(0);
//Trample, Reach, Protection from Multicolored
this.addAbility(new ProtectionAbility(filter));
this.addAbility(ReachAbility.getInstance());
this.addAbility(TrampleAbility.getInstance());
// Endless One enters the battlefield with X +1/+1 counters on it.
this.addAbility(new EntersBattlefieldAbility(new EntersBattlefieldWithXCountersEffect(CounterType.P1P1.createInstance())));
}
public StonecoilSerpent(final StonecoilSerpent card) {
super(card);
}
@Override
public StonecoilSerpent copy() {
return new StonecoilSerpent(this);
}
}