mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00:00
Implement Stonecoil Serpent
This commit is contained in:
parent
11d40d32d4
commit
26c21379b7
1 changed files with 55 additions and 0 deletions
55
Mage.Sets/src/mage/cards/s/StonecoilSerpent.java
Normal file
55
Mage.Sets/src/mage/cards/s/StonecoilSerpent.java
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue