Package mage.abilities.keyword

Source Code of mage.abilities.keyword.BattleCryAbility

package mage.abilities.keyword;

import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.effects.common.continious.BoostControlledEffect;
import mage.constants.Duration;
import mage.filter.common.FilterAttackingCreature;

public class BattleCryAbility extends AttacksTriggeredAbility {

    public BattleCryAbility() {
        super(new BoostControlledEffect(1, 0, Duration.EndOfTurn, new FilterAttackingCreature(), true), false);
    }

    public BattleCryAbility(final BattleCryAbility ability) {
        super(ability);
    }

    @Override
    public String getRule() {
        return "Battle cry <i>(Whenever this creature attacks, each other attacking creature gets +1/+0 until end of turn.)</i>";
    }

    @Override
    public BattleCryAbility copy() {
        return new BattleCryAbility(this);
    }
}
TOP

Related Classes of mage.abilities.keyword.BattleCryAbility

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.