Menu

Submission for Borderland Behemoth

142

Comment

Added the if amount >0 in case he's the only giant and his subtype changes.

Config

name=Borderland Behemoth
image=http://mtgimage.com/card/borderland%20behemoth.jpg
value=2.500
rarity=R
type=Creature
subtype=Giant,Warrior
cost={5}{R}{R}
pt=4/4
ability=Trample
timing=main
requires_groovy_code
oracle=Trample. Borderland Behemoth gets +4/+4 for each other Giant you control.

Script

[
    new MagicStatic(MagicLayer.ModPT) {
        @Override
        public void modPowerToughness(final MagicPermanent source, final MagicPermanent permanent, final MagicPowerToughness pt) {
            final int amount = 4 * source.getGame().getNrOfPermanents(MagicSubType.Giant) - 1;
            if (amount > 0) {
            pt.add(amount,amount);
            }
        }
    }
]
Pushed