mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
[ZNR] Implemented Cinderclasm
This commit is contained in:
parent
5972890cf0
commit
accc9c76d7
2 changed files with 44 additions and 0 deletions
43
Mage.Sets/src/mage/cards/c/Cinderclasm.java
Normal file
43
Mage.Sets/src/mage/cards/c/Cinderclasm.java
Normal file
|
@ -0,0 +1,43 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.abilities.condition.common.KickedCondition;
|
||||
import mage.abilities.costs.mana.ManaCostsImpl;
|
||||
import mage.abilities.decorator.ConditionalOneShotEffect;
|
||||
import mage.abilities.effects.common.DamageAllEffect;
|
||||
import mage.abilities.keyword.KickerAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.StaticFilters;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class Cinderclasm extends CardImpl {
|
||||
|
||||
public Cinderclasm(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{R}");
|
||||
|
||||
// Kicker {R}
|
||||
this.addAbility(new KickerAbility(new ManaCostsImpl<>("{R}")));
|
||||
|
||||
// Cinderclasm deals 1 damage to each creature. If it was kicked, it deals 2 damage to each creature instead.
|
||||
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
|
||||
new DamageAllEffect(2, StaticFilters.FILTER_PERMANENT_CREATURE),
|
||||
new DamageAllEffect(1, StaticFilters.FILTER_PERMANENT_CREATURE),
|
||||
KickedCondition.instance, "{this} deals 1 damage to each creature. " +
|
||||
"If it was kicked, it deals 2 damage to each creature instead"
|
||||
));
|
||||
}
|
||||
|
||||
private Cinderclasm(final Cinderclasm card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Cinderclasm copy() {
|
||||
return new Cinderclasm(this);
|
||||
}
|
||||
}
|
|
@ -93,6 +93,7 @@ public final class ZendikarRising extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Broken Wings", 181, Rarity.COMMON, mage.cards.b.BrokenWings.class));
|
||||
cards.add(new SetCardInfo("Bubble Snare", 47, Rarity.COMMON, mage.cards.b.BubbleSnare.class));
|
||||
cards.add(new SetCardInfo("Cascade Seer", 48, Rarity.COMMON, mage.cards.c.CascadeSeer.class));
|
||||
cards.add(new SetCardInfo("Cinderclasm", 136, Rarity.UNCOMMON, mage.cards.c.Cinderclasm.class));
|
||||
cards.add(new SetCardInfo("Clearwater Pathway", 260, Rarity.RARE, mage.cards.c.ClearwaterPathway.class));
|
||||
cards.add(new SetCardInfo("Cleric of Life's Bond", 222, Rarity.UNCOMMON, mage.cards.c.ClericOfLifesBond.class));
|
||||
cards.add(new SetCardInfo("Cliffhaven Sell-Sword", 8, Rarity.COMMON, mage.cards.c.CliffhavenSellSword.class));
|
||||
|
|
Loading…
Reference in a new issue