mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
[C21] Implemented Spawning Kraken
This commit is contained in:
parent
9fc81c0722
commit
37471c0172
2 changed files with 58 additions and 0 deletions
57
Mage.Sets/src/mage/cards/s/SpawningKraken.java
Normal file
57
Mage.Sets/src/mage/cards/s/SpawningKraken.java
Normal file
|
@ -0,0 +1,57 @@
|
|||
package mage.cards.s;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DealsDamageToAPlayerAllTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SetTargetPointer;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.game.permanent.token.KioraKrakenToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class SpawningKraken extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter
|
||||
= new FilterControlledPermanent("a Kraken, Leviathan, Octopus, or Serpent you control");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.or(
|
||||
SubType.KRAKEN.getPredicate(),
|
||||
SubType.LEVIATHAN.getPredicate(),
|
||||
SubType.OCTOPUS.getPredicate(),
|
||||
SubType.SERPENT.getPredicate()
|
||||
));
|
||||
}
|
||||
|
||||
public SpawningKraken(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{U}");
|
||||
|
||||
this.subtype.add(SubType.KRAKEN);
|
||||
this.power = new MageInt(6);
|
||||
this.toughness = new MageInt(6);
|
||||
|
||||
// Whenever a Kraken, Leviathan, Octopus, or Serpent you control deals combat damage to a player, create a 9/9 blue Kraken creature token.
|
||||
this.addAbility(new DealsDamageToAPlayerAllTriggeredAbility(
|
||||
new CreateTokenEffect(new KioraKrakenToken()), filter,
|
||||
false, SetTargetPointer.NONE, true
|
||||
));
|
||||
}
|
||||
|
||||
private SpawningKraken(final SpawningKraken card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public SpawningKraken copy() {
|
||||
return new SpawningKraken(this);
|
||||
}
|
||||
}
|
|
@ -80,6 +80,7 @@ public final class Commander2021Edition extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Slayers' Stronghold", 318, Rarity.RARE, mage.cards.s.SlayersStronghold.class));
|
||||
cards.add(new SetCardInfo("Sol Ring", 263, Rarity.UNCOMMON, mage.cards.s.SolRing.class));
|
||||
cards.add(new SetCardInfo("Solemn Simulacrum", 264, Rarity.RARE, mage.cards.s.SolemnSimulacrum.class));
|
||||
cards.add(new SetCardInfo("Spawning Kraken", 33, Rarity.RARE, mage.cards.s.SpawningKraken.class));
|
||||
cards.add(new SetCardInfo("Steel Hellkite", 266, Rarity.RARE, mage.cards.s.SteelHellkite.class));
|
||||
cards.add(new SetCardInfo("Steel Overseer", 267, Rarity.RARE, mage.cards.s.SteelOverseer.class));
|
||||
cards.add(new SetCardInfo("Sun Titan", 106, Rarity.MYTHIC, mage.cards.s.SunTitan.class));
|
||||
|
|
Loading…
Reference in a new issue