mirror of
https://github.com/correl/mage.git
synced 2025-04-12 09:11:05 -09:00
[MH2] Implemented General Ferrous Rokiric (#7868)
Co-authored-by: Evan Kranzler <theelk801@gmail.com>
This commit is contained in:
parent
90c891d1f8
commit
4972e050dd
3 changed files with 81 additions and 0 deletions
Mage.Sets/src/mage
Mage/src/main/java/mage/game/permanent/token
53
Mage.Sets/src/mage/cards/g/GeneralFerrousRokiric.java
Normal file
53
Mage.Sets/src/mage/cards/g/GeneralFerrousRokiric.java
Normal file
|
@ -0,0 +1,53 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SpellCastControllerTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.HexproofFromMonocoloredAbility;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterSpell;
|
||||
import mage.filter.predicate.mageobject.MulticoloredPredicate;
|
||||
import mage.game.permanent.token.RedWhiteGolemToken;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author weirddan455
|
||||
*/
|
||||
public final class GeneralFerrousRokiric extends CardImpl {
|
||||
|
||||
private static final FilterSpell filter = new FilterSpell("a multicolored spell");
|
||||
|
||||
static {
|
||||
filter.add(MulticoloredPredicate.instance);
|
||||
}
|
||||
|
||||
public GeneralFerrousRokiric(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}{W}");
|
||||
|
||||
this.addSuperType(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.SOLDIER);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Hexproof from monocolored
|
||||
this.addAbility(HexproofFromMonocoloredAbility.getInstance());
|
||||
|
||||
// Whenever you cast a multicolored spell, create a 4/4 red and white Golem artifact creature token.
|
||||
this.addAbility(new SpellCastControllerTriggeredAbility(new CreateTokenEffect(new RedWhiteGolemToken()), filter, false));
|
||||
}
|
||||
|
||||
private GeneralFerrousRokiric(final GeneralFerrousRokiric card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GeneralFerrousRokiric copy() {
|
||||
return new GeneralFerrousRokiric(this);
|
||||
}
|
||||
}
|
|
@ -79,6 +79,7 @@ public final class ModernHorizons2 extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Forest", 489, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Fractured Sanity", 44, Rarity.RARE, mage.cards.f.FracturedSanity.class));
|
||||
cards.add(new SetCardInfo("Gaea's Will", 162, Rarity.RARE, mage.cards.g.GaeasWill.class));
|
||||
cards.add(new SetCardInfo("General Ferrous Rokiric", 198, Rarity.RARE, mage.cards.g.GeneralFerrousRokiric.class));
|
||||
cards.add(new SetCardInfo("Ghost-Lit Drifter", 45, Rarity.UNCOMMON, mage.cards.g.GhostLitDrifter.class));
|
||||
cards.add(new SetCardInfo("Glinting Creeper", 164, Rarity.UNCOMMON, mage.cards.g.GlintingCreeper.class));
|
||||
cards.add(new SetCardInfo("Glorious Enforcer", 14, Rarity.UNCOMMON, mage.cards.g.GloriousEnforcer.class));
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
public class RedWhiteGolemToken extends TokenImpl {
|
||||
|
||||
public RedWhiteGolemToken() {
|
||||
super("Golem", "4/4 red and white Golem artifact creature token");
|
||||
cardType.add(CardType.ARTIFACT);
|
||||
cardType.add(CardType.CREATURE);
|
||||
subtype.add(SubType.GOLEM);
|
||||
color.setRed(true);
|
||||
color.setWhite(true);
|
||||
power = new MageInt(4);
|
||||
toughness = new MageInt(4);
|
||||
}
|
||||
|
||||
private RedWhiteGolemToken(final RedWhiteGolemToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public RedWhiteGolemToken copy() {
|
||||
return new RedWhiteGolemToken(this);
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue