Implemented Ominous Seas

This commit is contained in:
Evan Kranzler 2020-04-08 08:31:48 -04:00
parent f5572c8fc1
commit 71b69b9308
4 changed files with 84 additions and 0 deletions

View file

@ -0,0 +1,51 @@
package mage.cards.o;
import mage.abilities.common.DrawCardControllerTriggeredAbility;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.RemoveCountersSourceCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.abilities.keyword.CyclingAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.counters.CounterType;
import mage.game.permanent.token.KrakenToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class OminousSeas extends CardImpl {
public OminousSeas(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{U}");
// Whenever you draw a card, put a foreshadow counter on Ominous Seas.
this.addAbility(new DrawCardControllerTriggeredAbility(
new AddCountersSourceEffect(CounterType.FORESHADOW.createInstance()), false
));
// Remove eight foreshadow counters from Ominous Seas: Create an 8/8 blue Kraken creature token.
this.addAbility(new SimpleActivatedAbility(
new CreateTokenEffect(new KrakenToken()),
new RemoveCountersSourceCost(
CounterType.FORESHADOW.createInstance(8)
)
));
// Cycling {2}
this.addAbility(new CyclingAbility(new ManaCostsImpl("{2}")));
}
private OminousSeas(final OminousSeas card) {
super(card);
}
@Override
public OminousSeas copy() {
return new OminousSeas(this);
}
}

View file

@ -116,6 +116,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
cards.add(new SetCardInfo("Mythos of Nethroi", 97, Rarity.RARE, mage.cards.m.MythosOfNethroi.class));
cards.add(new SetCardInfo("Nethroi, Apex of Death", 197, Rarity.MYTHIC, mage.cards.n.NethroiApexOfDeath.class));
cards.add(new SetCardInfo("Neutralize", 59, Rarity.UNCOMMON, mage.cards.n.Neutralize.class));
cards.add(new SetCardInfo("Ominous Seas", 61, Rarity.UNCOMMON, mage.cards.o.OminousSeas.class));
cards.add(new SetCardInfo("Pacifism", 25, Rarity.COMMON, mage.cards.p.Pacifism.class));
cards.add(new SetCardInfo("Phase Dolphin", 62, Rarity.COMMON, mage.cards.p.PhaseDolphin.class));
cards.add(new SetCardInfo("Pollywog Symbiote", 63, Rarity.UNCOMMON, mage.cards.p.PollywogSymbiote.class));

View file

@ -53,6 +53,7 @@ public enum CounterType {
FIRST_STRIKE("first strike"),
FLOOD("flood"),
FLYING("flying"),
FORESHADOW("foreshadow"),
FUNK("funk"),
FURY("fury"),
FUNGUS("fungus"),

View file

@ -0,0 +1,31 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.ObjectColor;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author TheElk801
*/
public final class KrakenToken extends TokenImpl {
public KrakenToken() {
super("Kraken", "8/8 blue Kraken creature token");
this.cardType.add(CardType.CREATURE);
this.subtype.add(SubType.KRAKEN);
this.color = ObjectColor.BLUE;
this.power = new MageInt(8);
this.toughness = new MageInt(8);
}
private KrakenToken(final KrakenToken token) {
super(token);
}
public KrakenToken copy() {
return new KrakenToken(this);
}
}