Package mage.abilities.effects.common.combat

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


        this.addAbility(new AttacksEachTurnStaticAbility());
        // Enchanted creature gets +2/+2 and attacks each turn if able.
        Effect effect = new BoostEnchantedEffect(2,2,Duration.WhileOnBattlefield);
        effect.setText("Enchanted creature gets +2/+2");
        Ability ability = new SimpleStaticAbility(Zone.BATTLEFIELD, effect);
        effect = new AttacksIfAbleAttachedEffect(Duration.WhileOnBattlefield, AttachmentType.AURA);
        effect.setText("and attacks each turn if able");
        ability.addEffect(effect);
        this.addAbility(ability);       
    }
View Full Code Here

TOP

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

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.