mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
[TLA] Implement Rockalanche
This commit is contained in:
parent
6e0dc4f5f6
commit
9c630578f1
2 changed files with 52 additions and 0 deletions
51
Mage.Sets/src/mage/cards/r/Rockalanche.java
Normal file
51
Mage.Sets/src/mage/cards/r/Rockalanche.java
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.effects.keyword.EarthbendTargetEffect;
|
||||
import mage.abilities.hint.Hint;
|
||||
import mage.abilities.hint.ValueHint;
|
||||
import mage.abilities.keyword.FlashbackAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.common.FilterControlledPermanent;
|
||||
import mage.target.common.TargetControlledLandPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class Rockalanche extends CardImpl {
|
||||
|
||||
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(
|
||||
new FilterControlledPermanent(SubType.FOREST, "Forests you control"), null
|
||||
);
|
||||
private static final Hint hint = new ValueHint("Forests you control", xValue);
|
||||
|
||||
public Rockalanche(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{G}");
|
||||
|
||||
this.subtype.add(SubType.LESSON);
|
||||
|
||||
// Earthbend X, where X is the number of Forests you control.
|
||||
this.getSpellAbility().addEffect(new EarthbendTargetEffect(xValue));
|
||||
this.getSpellAbility().addTarget(new TargetControlledLandPermanent());
|
||||
this.getSpellAbility().addHint(hint);
|
||||
|
||||
// Flashback {5}{G}
|
||||
this.addAbility(new FlashbackAbility(this, new ManaCostsImpl<>("{5}{G}")));
|
||||
}
|
||||
|
||||
private Rockalanche(final Rockalanche card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Rockalanche copy() {
|
||||
return new Rockalanche(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -200,6 +200,7 @@ public final class AvatarTheLastAirbender extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Rebellious Captives", 191, Rarity.COMMON, mage.cards.r.RebelliousCaptives.class));
|
||||
cards.add(new SetCardInfo("Redirect Lightning", 151, Rarity.RARE, mage.cards.r.RedirectLightning.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Redirect Lightning", 343, Rarity.RARE, mage.cards.r.RedirectLightning.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Rockalanche", 192, Rarity.UNCOMMON, mage.cards.r.Rockalanche.class));
|
||||
cards.add(new SetCardInfo("Rocky Rebuke", 193, Rarity.COMMON, mage.cards.r.RockyRebuke.class));
|
||||
cards.add(new SetCardInfo("Rough Rhino Cavalry", 152, Rarity.COMMON, mage.cards.r.RoughRhinoCavalry.class));
|
||||
cards.add(new SetCardInfo("Rowdy Snowballers", 68, Rarity.COMMON, mage.cards.r.RowdySnowballers.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue