Menu

Submission for Rhox Meditant

16

Config

name=Rhox Meditant
image=http://mtgimage.com/card/rhox%20meditant.jpg
value=2.500
rarity=C
type=Creature
subtype=Rhino,Monk
cost={3}{W}
pt=2/4
timing=main
requires_groovy_code
oracle=When Rhox Meditant enters the battlefield, if you control a green permanent, draw a card.

Script

[
    new MagicWhenComesIntoPlayTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game, final MagicPermanent permanent, final MagicPayedCost payedCost) {
            return permanent.getController().controlsPermanent(MagicColor.Green) == true ?
                new MagicEvent(
                    permanent,
                    this,
                    "If PN controls a green permanent, draw a card."
                ):
                MagicEvent.NONE;
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            if (event.getPlayer().controlsPermanent(MagicColor.Green) == true) {
                game.doAction(new MagicDrawAction(event.getPlayer()));
            }
        }
    }
]
Pushed