forked from External/mage
Implemented Rumbling Rockslide
This commit is contained in:
parent
8a259456ff
commit
d76dc5785c
3 changed files with 41 additions and 1 deletions
39
Mage.Sets/src/mage/cards/r/RumblingRockslide.java
Normal file
39
Mage.Sets/src/mage/cards/r/RumblingRockslide.java
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.effects.common.DamageTargetEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledLandPermanent;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RumblingRockslide extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterControlledLandPermanent("lands you control");
|
||||
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter);
|
||||
|
||||
public RumblingRockslide(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{R}");
|
||||
|
||||
// Rumbling Rockslide deals damage to target creature equal to the number of lands you control.
|
||||
this.getSpellAbility().addEffect(new DamageTargetEffect(xValue));
|
||||
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
|
||||
}
|
||||
|
||||
private RumblingRockslide(final RumblingRockslide card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RumblingRockslide copy() {
|
||||
return new RumblingRockslide(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -241,6 +241,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Reptilian Reflection", 132, Rarity.UNCOMMON, mage.cards.r.ReptilianReflection.class));
|
||||
cards.add(new SetCardInfo("Rugged Highlands", 252, Rarity.COMMON, mage.cards.r.RuggedHighlands.class));
|
||||
cards.add(new SetCardInfo("Ruinous Ultimatum", 204, Rarity.RARE, mage.cards.r.RuinousUltimatum.class));
|
||||
cards.add(new SetCardInfo("Rumbling Rockslide", 134, Rarity.COMMON, mage.cards.r.RumblingRockslide.class));
|
||||
cards.add(new SetCardInfo("Sanctuary Lockdown", 28, Rarity.UNCOMMON, mage.cards.s.SanctuaryLockdown.class));
|
||||
cards.add(new SetCardInfo("Sanctuary Smasher", 135, Rarity.UNCOMMON, mage.cards.s.SanctuarySmasher.class));
|
||||
cards.add(new SetCardInfo("Savai Crystal", 239, Rarity.UNCOMMON, mage.cards.s.SavaiCrystal.class));
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ public class DamageTargetEffect extends OneShotEffect {
|
|||
protected boolean useOnlyTargetPointer;
|
||||
protected String sourceName = "{source}";
|
||||
|
||||
public DamageTargetEffect(int amount) {
|
||||
public \DamageTargetEffect(int amount) {
|
||||
this(StaticValue.get(amount), true);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue