implement [PRM] Gleemox

This commit is contained in:
t-my 2025-07-30 15:25:23 +03:00 committed by xenohedron
parent 93fb923ef8
commit a1ea43b43a
4 changed files with 46 additions and 1 deletions

View file

@ -0,0 +1,32 @@
package mage.cards.g;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.common.InfoEffect;
import mage.abilities.mana.AnyColorManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import java.util.UUID;
/**
* @author Tuomas-Matti Soikkeli
*/
public final class Gleemox extends CardImpl {
public Gleemox(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{0}");
this.addAbility(new AnyColorManaAbility());
this.addAbility(new SimpleStaticAbility(new InfoEffect("This card is banned.")));
}
private Gleemox(final Gleemox card) {
super(card);
}
@Override
public Gleemox copy() {
return new Gleemox(this);
}
}

View file

@ -1064,6 +1064,7 @@ public class MagicOnlinePromos extends ExpansionSet {
cards.add(new SetCardInfo("Gladehart Cavalry", 59661, Rarity.RARE, mage.cards.g.GladehartCavalry.class));
cards.add(new SetCardInfo("Glasspool Mimic", 83872, Rarity.RARE, mage.cards.g.GlasspoolMimic.class));
cards.add(new SetCardInfo("Gleancrawler", 32017, Rarity.RARE, mage.cards.g.Gleancrawler.class));
cards.add(new SetCardInfo("Gleemox", 26584, Rarity.RARE, mage.cards.g.Gleemox.class));
cards.add(new SetCardInfo("Glimpse of Tomorrow", 91287, Rarity.RARE, mage.cards.g.GlimpseOfTomorrow.class));
cards.add(new SetCardInfo("Glimpse the Unthinkable", 102297, Rarity.RARE, mage.cards.g.GlimpseTheUnthinkable.class));
cards.add(new SetCardInfo("Glint Raker", 105660, Rarity.RARE, mage.cards.g.GlintRaker.class, NON_FULL_USE_VARIOUS));

View file

@ -4,6 +4,7 @@ import mage.cards.decks.DeckValidator;
import mage.deck.Commander;
import mage.deck.Limited;
import mage.deck.Modern;
import mage.deck.Legacy;
import mage.deck.Standard;
import org.junit.Assert;
import org.junit.Test;
@ -18,6 +19,14 @@ import static org.mage.test.serverside.deck.DeckValidationUtil.testDeckValid;
*/
public class DeckValidatorTest extends MageTestPlayerBase {
@Test
public void testGleemoxBanned() {
DeckTester deckTester = new DeckTester(new Legacy());
deckTester.addMaindeck("Gleemox", 1);
deckTester.addMaindeck("Island", 59);
deckTester.validate("Gleemox is banned.", false);
}
@Test
public void testStandardDeckCardsAmountValid() {
DeckTester deckTester = new DeckTester(new Standard());

View file

@ -193,6 +193,9 @@ public class Constructed extends DeckValidator {
banned.add("Vorthos, Steward of Myth");
banned.add("Water Gun Balloon Game");
banned.add("Well Done");
// Gleemox is banned
banned.add("Gleemox");
}
public List<String> getSetCodes() {
@ -350,4 +353,4 @@ public class Constructed extends DeckValidator {
}
return valid;
}
}
}