forked from External/mage
* apply regex to change public copy constructors to protected * cleanup code using now protected constructors * fix manaBuilder weird casting of Mana into ConditionalMana
29 lines
904 B
Java
29 lines
904 B
Java
package mage.abilities.keyword;
|
|
|
|
import mage.abilities.common.AttacksTriggeredAbility;
|
|
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
|
import mage.constants.Duration;
|
|
import mage.filter.common.FilterAttackingCreature;
|
|
|
|
public class BattleCryAbility extends AttacksTriggeredAbility {
|
|
|
|
private static final FilterAttackingCreature filter = new FilterAttackingCreature();
|
|
|
|
public BattleCryAbility() {
|
|
super(new BoostControlledEffect(1, 0, Duration.EndOfTurn, filter, true), false);
|
|
}
|
|
|
|
protected 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);
|
|
}
|
|
}
|