mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 11:32:00 -08:00
[KHM] Implemented Moritte of the Frost
This commit is contained in:
parent
5654af91db
commit
6d3ccfc8fa
2 changed files with 81 additions and 0 deletions
80
Mage.Sets/src/mage/cards/m/MoritteOfTheFrost.java
Normal file
80
Mage.Sets/src/mage/cards/m/MoritteOfTheFrost.java
Normal file
|
|
@ -0,0 +1,80 @@
|
||||||
|
package mage.cards.m;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.MageObject;
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.common.EntersBattlefieldAbility;
|
||||||
|
import mage.abilities.effects.common.CopyPermanentEffect;
|
||||||
|
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||||
|
import mage.abilities.keyword.ChangelingAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.constants.CardType;
|
||||||
|
import mage.constants.SubType;
|
||||||
|
import mage.constants.SuperType;
|
||||||
|
import mage.counters.CounterType;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
|
import mage.game.Game;
|
||||||
|
import mage.game.permanent.Permanent;
|
||||||
|
import mage.util.functions.ApplyToPermanent;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author TheElk801
|
||||||
|
*/
|
||||||
|
public final class MoritteOfTheFrost extends CardImpl {
|
||||||
|
|
||||||
|
public MoritteOfTheFrost(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}{U}{U}");
|
||||||
|
|
||||||
|
this.addSuperType(SuperType.LEGENDARY);
|
||||||
|
this.addSuperType(SuperType.SNOW);
|
||||||
|
this.subtype.add(SubType.SHAPESHIFTER);
|
||||||
|
this.power = new MageInt(0);
|
||||||
|
this.toughness = new MageInt(0);
|
||||||
|
|
||||||
|
// Changeling
|
||||||
|
this.setIsAllCreatureTypes(true);
|
||||||
|
this.addAbility(ChangelingAbility.getInstance());
|
||||||
|
|
||||||
|
// You may have Moritte of the Frost enter the battlefield as a copy of a permanent you control, except it's legendary and snow in addition to its other types and, if it's a creature, it enters with two additional +1/+1 counters on it and has changeling.
|
||||||
|
this.addAbility(new EntersBattlefieldAbility(new CopyPermanentEffect(
|
||||||
|
StaticFilters.FILTER_CONTROLLED_PERMANENT, new MoritteOfTheFrostApplier()
|
||||||
|
).setText("as a copy of a permanent you control, except it's legendary and snow in addition to its other types " +
|
||||||
|
"and, if it's a creature, it enters with two additional +1/+1 counters on it and has changeling."
|
||||||
|
), true));
|
||||||
|
}
|
||||||
|
|
||||||
|
private MoritteOfTheFrost(final MoritteOfTheFrost card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public MoritteOfTheFrost copy() {
|
||||||
|
return new MoritteOfTheFrost(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class MoritteOfTheFrostApplier extends ApplyToPermanent {
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean apply(Game game, Permanent copyFromBlueprint, Ability source, UUID copyToObjectId) {
|
||||||
|
return apply(game, (MageObject) copyFromBlueprint, source, copyToObjectId);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean apply(Game game, MageObject copyFromBlueprint, Ability source, UUID copyToObjectId) {
|
||||||
|
copyFromBlueprint.addSuperType(SuperType.LEGENDARY);
|
||||||
|
copyFromBlueprint.addSuperType(SuperType.SNOW);
|
||||||
|
|
||||||
|
if (!isCopyOfCopy(source, copyToObjectId) && copyFromBlueprint.isCreature()) {
|
||||||
|
copyFromBlueprint.setIsAllCreatureTypes(true);
|
||||||
|
copyFromBlueprint.getAbilities().add(ChangelingAbility.getInstance());
|
||||||
|
new AddCountersSourceEffect(
|
||||||
|
CounterType.P1P1.createInstance(2), false
|
||||||
|
).apply(game, source);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -234,6 +234,7 @@ public final class Kaldheim extends ExpansionSet {
|
||||||
cards.add(new SetCardInfo("Master Skald", 19, Rarity.COMMON, mage.cards.m.MasterSkald.class));
|
cards.add(new SetCardInfo("Master Skald", 19, Rarity.COMMON, mage.cards.m.MasterSkald.class));
|
||||||
cards.add(new SetCardInfo("Mists of Littjara", 67, Rarity.COMMON, mage.cards.m.MistsOfLittjara.class));
|
cards.add(new SetCardInfo("Mists of Littjara", 67, Rarity.COMMON, mage.cards.m.MistsOfLittjara.class));
|
||||||
cards.add(new SetCardInfo("Mistwalker", 68, Rarity.COMMON, mage.cards.m.Mistwalker.class));
|
cards.add(new SetCardInfo("Mistwalker", 68, Rarity.COMMON, mage.cards.m.Mistwalker.class));
|
||||||
|
cards.add(new SetCardInfo("Moritte of the Frost", 223, Rarity.UNCOMMON, mage.cards.m.MoritteOfTheFrost.class));
|
||||||
cards.add(new SetCardInfo("Mountain", 397, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));
|
cards.add(new SetCardInfo("Mountain", 397, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));
|
||||||
cards.add(new SetCardInfo("Narfi, Betrayer King", 224, Rarity.UNCOMMON, mage.cards.n.NarfiBetrayerKing.class));
|
cards.add(new SetCardInfo("Narfi, Betrayer King", 224, Rarity.UNCOMMON, mage.cards.n.NarfiBetrayerKing.class));
|
||||||
cards.add(new SetCardInfo("Niko Aris", 225, Rarity.MYTHIC, mage.cards.n.NikoAris.class));
|
cards.add(new SetCardInfo("Niko Aris", 225, Rarity.MYTHIC, mage.cards.n.NikoAris.class));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue