forked from External/mage
[EOE] Implement Ruinous Rampage
This commit is contained in:
parent
aa4c8c22d0
commit
36267cfca6
2 changed files with 48 additions and 0 deletions
47
Mage.Sets/src/mage/cards/r/RuinousRampage.java
Normal file
47
Mage.Sets/src/mage/cards/r/RuinousRampage.java
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.r;
|
||||
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.effects.common.DamagePlayersEffect;
|
||||
import mage.abilities.effects.common.ExileAllEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.ComparisonType;
|
||||
import mage.constants.TargetController;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterArtifactPermanent;
|
||||
import mage.filter.predicate.mageobject.ManaValuePredicate;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class RuinousRampage extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterArtifactPermanent("artifacts with mana value 3 or less");
|
||||
|
||||
static {
|
||||
filter.add(new ManaValuePredicate(ComparisonType.FEWER_THAN, 4));
|
||||
}
|
||||
|
||||
public RuinousRampage(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{R}{R}");
|
||||
|
||||
// Choose one --
|
||||
// * Ruinous Rampage deals 3 damage to each opponent.
|
||||
this.getSpellAbility().addEffect(new DamagePlayersEffect(3, TargetController.OPPONENT));
|
||||
|
||||
// * Exile all artifacts with mana value 3 or less.
|
||||
this.getSpellAbility().addMode(new Mode(new ExileAllEffect(filter)));
|
||||
}
|
||||
|
||||
private RuinousRampage(final RuinousRampage card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public RuinousRampage copy() {
|
||||
return new RuinousRampage(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -117,6 +117,7 @@ public final class EdgeOfEternities extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Ragost, Deft Gastronaut", 224, Rarity.RARE, mage.cards.r.RagostDeftGastronaut.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Ragost, Deft Gastronaut", 300, Rarity.RARE, mage.cards.r.RagostDeftGastronaut.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Red Tiger Mechan", 154, Rarity.COMMON, mage.cards.r.RedTigerMechan.class));
|
||||
cards.add(new SetCardInfo("Ruinous Rampage", 158, Rarity.UNCOMMON, mage.cards.r.RuinousRampage.class));
|
||||
cards.add(new SetCardInfo("Rust Harvester", 159, Rarity.RARE, mage.cards.r.RustHarvester.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Rust Harvester", 310, Rarity.RARE, mage.cards.r.RustHarvester.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Sacred Foundry", 256, Rarity.RARE, mage.cards.s.SacredFoundry.class, NON_FULL_USE_VARIOUS));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue