Package mage.abilities.effects.common.combat

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


        // Enchanted creature gets +2/+2, has flying, and can't attack you or a planeswalker you control.
        ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2,2,Duration.WhileOnBattlefield));
        Effect effect = new GainAbilityAttachedEffect(FlyingAbility.getInstance(), AttachmentType.AURA, Duration.WhileOnBattlefield);
        effect.setText(", has flying");
        ability.addEffect(effect);
        effect = new CantAttackControllerAttachedEffect(AttachmentType.AURA);
        effect.setText(", and can't attack you or a planeswalker you control");
        ability.addEffect(effect);
        this.addAbility(ability);       
    }
View Full Code Here


        // Enchanted creature gets +2/+2, has vigilance, and can't attack you or a planeswalker you control.
        ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2,2,Duration.WhileOnBattlefield));
        Effect effect = new GainAbilityAttachedEffect(VigilanceAbility.getInstance(), AttachmentType.AURA, Duration.WhileOnBattlefield);
        effect.setText(", has vigilance");
        ability.addEffect(effect);
        effect = new CantAttackControllerAttachedEffect(AttachmentType.AURA);
        effect.setText(", and can't attack you or a planeswalker you control");
        ability.addEffect(effect);
        this.addAbility(ability);         
    }
View Full Code Here

        // Enchanted creature gets +3/+3, has trample, and can't attack you or a planeswalker you control.
        ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(3,3,Duration.WhileOnBattlefield));
        Effect effect = new GainAbilityAttachedEffect(TrampleAbility.getInstance(), AttachmentType.AURA, Duration.WhileOnBattlefield);
        effect.setText(", has trample");
        ability.addEffect(effect);
        effect = new CantAttackControllerAttachedEffect(AttachmentType.AURA);
        effect.setText(", and can't attack you or a planeswalker you control");
        ability.addEffect(effect);
        this.addAbility(ability);
    }
View Full Code Here

        // Enchanted creature gets +2/+2, has first strike, and can't attack you or a planeswalker you control.
        ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2,2,Duration.WhileOnBattlefield));
        Effect effect = new GainAbilityAttachedEffect(FirstStrikeAbility.getInstance(), AttachmentType.AURA, Duration.WhileOnBattlefield);
        effect.setText(", has first strike");
        ability.addEffect(effect);
        effect = new CantAttackControllerAttachedEffect(AttachmentType.AURA);
        effect.setText(", and can't attack you or a planeswalker you control");
        ability.addEffect(effect);
        this.addAbility(ability);       
    }
View Full Code Here

        // Enchanted creature gets +2/+2, has intimidate, and can't attack you or a planeswalker you control.
        ability = new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEnchantedEffect(2,2,Duration.WhileOnBattlefield));
        Effect effect = new GainAbilityAttachedEffect(IntimidateAbility.getInstance(), AttachmentType.AURA, Duration.WhileOnBattlefield);
        effect.setText(", has intimidate");
        ability.addEffect(effect);
        effect = new CantAttackControllerAttachedEffect(AttachmentType.AURA);
        effect.setText(", and can't attack you or a planeswalker you control");
        ability.addEffect(effect);
        this.addAbility(ability);          
    }
View Full Code Here

TOP

Related Classes of mage.abilities.effects.common.combat.CantAttackControllerAttachedEffect

Copyright © 2018 www.massapicom. 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.