Add [PRM] Gleemox

This commit is contained in:
t-my 2025-07-30 15:25:23 +03:00
parent 97f972e27e
commit 34ae8d2a95
No known key found for this signature in database
3 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,33 @@
package mage.cards.g;
import java.util.UUID;
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;
/**
* @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

@ -4,6 +4,7 @@ import mage.cards.decks.DeckValidator;
import mage.deck.Commander; import mage.deck.Commander;
import mage.deck.Limited; import mage.deck.Limited;
import mage.deck.Modern; import mage.deck.Modern;
import mage.deck.Legacy;
import mage.deck.Standard; import mage.deck.Standard;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Test; import org.junit.Test;
@ -18,6 +19,14 @@ import static org.mage.test.serverside.deck.DeckValidationUtil.testDeckValid;
*/ */
public class DeckValidatorTest extends MageTestPlayerBase { 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 @Test
public void testStandardDeckCardsAmountValid() { public void testStandardDeckCardsAmountValid() {
DeckTester deckTester = new DeckTester(new Standard()); 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("Vorthos, Steward of Myth");
banned.add("Water Gun Balloon Game"); banned.add("Water Gun Balloon Game");
banned.add("Well Done"); banned.add("Well Done");
// Gleemox is banned
banned.add("Gleemox");
} }
public List<String> getSetCodes() { public List<String> getSetCodes() {