mirror of
https://github.com/correl/mage.git
synced 2025-04-03 01:08:59 -09:00
[DMU] Implemented Molten Monstrosity
This commit is contained in:
parent
9b2abfb1bb
commit
6b09fc68ef
3 changed files with 48 additions and 2 deletions
Mage.Sets/src/mage
Mage/src/main/java/mage/abilities/dynamicvalue/common
45
Mage.Sets/src/mage/cards/m/MoltenMonstrosity.java
Normal file
45
Mage.Sets/src/mage/cards/m/MoltenMonstrosity.java
Normal file
|
@ -0,0 +1,45 @@
|
|||
package mage.cards.m;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.dynamicvalue.common.GreatestPowerAmongControlledCreaturesValue;
|
||||
import mage.abilities.effects.common.cost.SpellCostReductionSourceEffect;
|
||||
import mage.abilities.keyword.TrampleAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class MoltenMonstrosity extends CardImpl {
|
||||
|
||||
public MoltenMonstrosity(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{7}{R}");
|
||||
|
||||
this.subtype.add(SubType.HELLION);
|
||||
this.power = new MageInt(5);
|
||||
this.toughness = new MageInt(5);
|
||||
|
||||
// This spell costs {X} less to cast, where X is the greatest power among creatures you control.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.ALL, new SpellCostReductionSourceEffect(GreatestPowerAmongControlledCreaturesValue.instance)
|
||||
).setRuleAtTheTop(true).addHint(GreatestPowerAmongControlledCreaturesValue.getHint()));
|
||||
|
||||
// Trample
|
||||
this.addAbility(TrampleAbility.getInstance());
|
||||
}
|
||||
|
||||
private MoltenMonstrosity(final MoltenMonstrosity card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MoltenMonstrosity copy() {
|
||||
return new MoltenMonstrosity(this);
|
||||
}
|
||||
}
|
|
@ -62,6 +62,7 @@ public final class DominariaUnited extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Magnigoth Sentry", 172, Rarity.COMMON, mage.cards.m.MagnigothSentry.class));
|
||||
cards.add(new SetCardInfo("Mesa Cavalier", 26, Rarity.COMMON, mage.cards.m.MesaCavalier.class));
|
||||
cards.add(new SetCardInfo("Micromancer", 57, Rarity.UNCOMMON, mage.cards.m.Micromancer.class));
|
||||
cards.add(new SetCardInfo("Molten Monstrosity", 139, Rarity.COMMON, mage.cards.m.MoltenMonstrosity.class));
|
||||
cards.add(new SetCardInfo("Monstrous War-Leech", 98, Rarity.UNCOMMON, mage.cards.m.MonstrousWarLeech.class));
|
||||
cards.add(new SetCardInfo("Mountain", 271, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Nishoba Brawler", 174, Rarity.UNCOMMON, mage.cards.n.NishobaBrawler.class));
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
package mage.abilities.dynamicvalue.common;
|
||||
|
||||
import mage.MageInt;
|
||||
|
@ -17,7 +16,8 @@ import mage.game.Game;
|
|||
public enum GreatestPowerAmongControlledCreaturesValue implements DynamicValue {
|
||||
instance;
|
||||
|
||||
private static final Hint hint=new ValueHint("Greatest power among creatures you control",instance);
|
||||
private static final Hint hint = new ValueHint("Greatest power among creatures you control", instance);
|
||||
|
||||
@Override
|
||||
public int calculate(Game game, Ability sourceAbility, Effect effect) {
|
||||
return game
|
||||
|
|
Loading…
Add table
Reference in a new issue