forked from External/mage
* Add minimum and maximum target counts as parameters for TargetAmount and its subclasses; update/add several rules comments (and one actual text) for clarity; remove unused imports * Get amount+description from target instead of parameters for DistributeCountersEffect and DamageMultiEffect; additions to TargetImpl.getDescription to accommodate * Create separate method to check if "any number" phrasing should be used, override it in TargetAmount * Check instanceof TargetAmount before casting * Add new constructors to chain off of for TargetCreaturePermanentAmount & TargetCreatureOrPlaneswalkerAmount * Fix text for Storm the Seedcore * Use Integer.MAX_VALUE instead of 0 to represent no maximum targets * Add comment about getUseAnyNumber() * Use amount-only constructors in some TargetAmount subclasses, add clarifying documentation * Fix a few calls * Require more specific filters
32 lines
867 B
Java
32 lines
867 B
Java
package mage.cards.b;
|
|
|
|
import java.util.UUID;
|
|
import mage.abilities.effects.common.DamageMultiEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.target.common.TargetAnyTargetAmount;
|
|
|
|
/**
|
|
*
|
|
* @author Plopman
|
|
*/
|
|
public final class Boulderfall extends CardImpl {
|
|
|
|
public Boulderfall(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId,setInfo,new CardType[]{CardType.INSTANT},"{6}{R}{R}");
|
|
|
|
// Boulderfall deals 5 damage divided as you choose among any number of targets.
|
|
this.getSpellAbility().addEffect(new DamageMultiEffect());
|
|
this.getSpellAbility().addTarget(new TargetAnyTargetAmount(5));
|
|
}
|
|
|
|
private Boulderfall(final Boulderfall card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public Boulderfall copy() {
|
|
return new Boulderfall(this);
|
|
}
|
|
}
|