mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
Add [PRM] Gleemox
This commit is contained in:
parent
97f972e27e
commit
34ae8d2a95
3 changed files with 45 additions and 0 deletions
33
Mage.Sets/src/mage/cards/g/Gleemox.java
Normal file
33
Mage.Sets/src/mage/cards/g/Gleemox.java
Normal 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);
|
||||
}
|
||||
}
|
||||
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue