fixed Rumbling Rockslide text

This commit is contained in:
Evan Kranzler 2020-04-20 21:39:52 -04:00
parent f30e415701
commit 062410caca

View file

@ -6,8 +6,7 @@ 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.filter.StaticFilters;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
@ -17,14 +16,15 @@ import java.util.UUID;
*/
public final class RumblingRockslide extends CardImpl {
private static final FilterPermanent filter = new FilterControlledLandPermanent("lands you control");
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter);
private static final DynamicValue xValue
= new PermanentsOnBattlefieldCount(StaticFilters.FILTER_CONTROLLED_LAND_SHORT_TEXT);
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().addEffect(new DamageTargetEffect(xValue)
.setText("{this} deals damage to target creature equal to the number of lands you control"));
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}