Menu

Submission for Honden of Cleansing Fire

13

Config

name=Honden of Cleansing Fire
url=http://magiccards.info/query?q=%21honden%20of%20cleansing%20fire
image=http://mtgimage.com/card/honden%20of%20cleansing%20fire.jpg
value=3.727
rarity=U
type=Legendary,Enchantment
subtype=shrine
cost={3}{W}
timing=main
requires_groovy_code

Script

def SHRINES_YOU_CONTROL = new MagicPermanentFilterImpl() {
        public boolean accept(final MagicGame game,final MagicPlayer player,final MagicPermanent target) {
            return target.isController(player) &&
                   target.hasSubType(MagicSubType.Shrine);
        }
    };

[
    new MagicAtUpkeepTrigger() {
        @Override
        public MagicEvent executeTrigger(final MagicGame game,final MagicPermanent permanent, final MagicPlayer upkeepPlayer) {
            return (permanent.getController() == upkeepPlayer) ? new MagicEvent(
                permanent,
                permanent.getController(),
                this,
                "PN gains 2 life for each Shrine he or she controls."
            ):
            MagicEvent.NONE
        }
        @Override
        public void executeEvent(final MagicGame game, final MagicEvent event) {
            final int size = 2*(game.filterPermanents(event.getPlayer(),SHRINES_YOU_CONTROL).size());
            game.doAction(new MagicChangeLifeAction(event.getPlayer(),size));
        }
    }
]
Pushed