mirror of
https://github.com/magefree/mage.git
synced 2026-01-24 12:19:59 -08:00
[ECL] Implement Boulder Dash
This commit is contained in:
parent
194afb7372
commit
2c1084d310
2 changed files with 47 additions and 0 deletions
46
Mage.Sets/src/mage/cards/b/BoulderDash.java
Normal file
46
Mage.Sets/src/mage/cards/b/BoulderDash.java
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
package mage.cards.b;
|
||||
|
||||
import mage.abilities.effects.common.DamageTargetAndTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.common.FilterAnyTarget;
|
||||
import mage.filter.common.FilterPermanentOrPlayer;
|
||||
import mage.filter.predicate.other.AnotherTargetPredicate;
|
||||
import mage.target.common.TargetAnyTarget;
|
||||
import mage.target.common.TargetPermanentOrPlayer;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class BoulderDash extends CardImpl {
|
||||
|
||||
private static final FilterPermanentOrPlayer filter2 = new FilterAnyTarget("another target");
|
||||
|
||||
static {
|
||||
filter2.getPermanentFilter().add(new AnotherTargetPredicate(2));
|
||||
filter2.getPlayerFilter().add(new AnotherTargetPredicate(2));
|
||||
}
|
||||
|
||||
public BoulderDash(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{R}");
|
||||
|
||||
// Boulder Dash deals 2 damage to any target and 1 damage to any other target.
|
||||
this.getSpellAbility().addEffect(new DamageTargetAndTargetEffect(2, 1));
|
||||
this.getSpellAbility().addTarget(new TargetAnyTarget()
|
||||
.withChooseHint("to deal 2 damage").setTargetTag(1));
|
||||
this.getSpellAbility().addTarget(new TargetPermanentOrPlayer(filter2)
|
||||
.withChooseHint("to deal 1 damage").setTargetTag(2));
|
||||
}
|
||||
|
||||
private BoulderDash(final BoulderDash card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BoulderDash copy() {
|
||||
return new BoulderDash(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -59,6 +59,7 @@ public final class LorwynEclipsed extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Bogslither's Embrace", 94, Rarity.COMMON, mage.cards.b.BogslithersEmbrace.class));
|
||||
cards.add(new SetCardInfo("Boldwyr Aggressor", 125, Rarity.UNCOMMON, mage.cards.b.BoldwyrAggressor.class));
|
||||
cards.add(new SetCardInfo("Boneclub Berserker", 126, Rarity.COMMON, mage.cards.b.BoneclubBerserker.class));
|
||||
cards.add(new SetCardInfo("Boulder Dash", 127, Rarity.UNCOMMON, mage.cards.b.BoulderDash.class));
|
||||
cards.add(new SetCardInfo("Brambleback Brute", 128, Rarity.COMMON, mage.cards.b.BramblebackBrute.class));
|
||||
cards.add(new SetCardInfo("Brigid's Command", 208, Rarity.RARE, mage.cards.b.BrigidsCommand.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Brigid's Command", 332, Rarity.RARE, mage.cards.b.BrigidsCommand.class, NON_FULL_USE_VARIOUS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue