Examples of ConditionalRequirementEffect


Examples of mage.abilities.decorator.ConditionalRequirementEffect

        this.color.setRed(true);
        this.power = new MageInt(5);
        this.toughness = new MageInt(3);

        // Marauding Maulhorn attacks each combat if able unless you control a creature named Advocate of the Beast.
        Effect effect = new ConditionalRequirementEffect(
                new AttacksIfAbleSourceEffect(Duration.WhileOnBattlefield),
                new PermanentsOnTheBattlefieldCondition(filter, PermanentsOnTheBattlefieldCondition.CountType.FEWER_THAN, 1));
        effect.setText("{this} attacks each combat if able unless you control a creature named Advocate of the Beast");

        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, effect));
       
    }
View Full Code Here

Examples of mage.abilities.decorator.ConditionalRequirementEffect

        this.addAbility(blackAbility);
        // As long as enchanted creature is green, it gets +1/+1 and all creatures able to block it do so.
        SimpleStaticAbility greenAbility;
        greenAbility = new SimpleStaticAbility(Zone.BATTLEFIELD, new ConditionalContinousEffect(new BoostEnchantedEffect(1, 1), new EnchantedCreatureColorCondition(ObjectColor.GREEN),
            "As long as enchanted creature is green, it gets +1/+1"));
        Effect effect = new ConditionalRequirementEffect(new MustBeBlockedByAllAttachedEffect(AttachmentType.AURA), new EnchantedCreatureColorCondition(ObjectColor.GREEN));
        effect.setText("and all creatures able to block it do so");
        greenAbility.addEffect(effect);
        this.addAbility(greenAbility);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.