Examples of MustBeBlockedByAllAttachedEffect


Examples of mage.abilities.effects.common.combat.MustBeBlockedByAllAttachedEffect

        this.addAbility(new BestowAbility(this, "{5}{G}"));
        // All creatures able to block Noble Quarry or enchanted creature do so.
        Effect effect = new MustBeBlockedByAllSourceEffect(Duration.WhileOnBattlefield);
        effect.setText("All creatures able to block Noble Quarry");
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, effect);
        effect = new MustBeBlockedByAllAttachedEffect(Duration.WhileOnBattlefield, AttachmentType.AURA);
        effect.setText("or enchanted creature do so");
        ability.addEffect(effect);
        this.addAbility(ability);

        // Enchanted creature gets +1/+1.
View Full Code Here

Examples of mage.abilities.effects.common.combat.MustBeBlockedByAllAttachedEffect

        this.getSpellAbility().addEffect(new AttachEffect(Outcome.AddAbility));
        Ability ability = new EnchantAbility(auraTarget.getTargetName());
        this.addAbility(ability);

        // All creatures able to block enchanted creature do so.
        this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new MustBeBlockedByAllAttachedEffect(AttachmentType.AURA)));
    }
View Full Code Here

Examples of mage.abilities.effects.common.combat.MustBeBlockedByAllAttachedEffect

        this.addAbility(ability);

        // Enchanted creature gets +4/+4 and has first strike, and all creatures able to block it do so.
        ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(4, 4, Duration.WhileOnBattlefield));
        ability.addEffect(new GainAbilityAttachedEffect(FirstStrikeAbility.getInstance(), AttachmentType.AURA));
        ability.addEffect(new MustBeBlockedByAllAttachedEffect(AttachmentType.AURA));
        this.addAbility(ability);

        // Totem armor
        this.addAbility(new TotemArmorAbility());
    }
View Full Code Here

Examples of mage.abilities.effects.common.combat.MustBeBlockedByAllAttachedEffect

        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.