mirror of
https://github.com/correl/mage.git
synced 2024-12-25 19:25:41 +00:00
[KHM] Implemented Crush the Weak
This commit is contained in:
parent
b531ef092e
commit
d0794ac2af
2 changed files with 41 additions and 0 deletions
40
Mage.Sets/src/mage/cards/c/CrushTheWeak.java
Normal file
40
Mage.Sets/src/mage/cards/c/CrushTheWeak.java
Normal file
|
@ -0,0 +1,40 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import mage.abilities.effects.common.DamageAllEffect;
|
||||
import mage.abilities.effects.common.replacement.DealtDamageToCreatureBySourceDies;
|
||||
import mage.abilities.keyword.ForetellAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.filter.StaticFilters;
|
||||
import mage.watchers.common.DamagedByWatcher;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class CrushTheWeak extends CardImpl {
|
||||
|
||||
public CrushTheWeak(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{R}");
|
||||
|
||||
// Crush the Weak deals 2 damage to each creature. If a creature dealt damage this way would die this turn, exile it instead.
|
||||
this.getSpellAbility().addEffect(new DamageAllEffect(2, StaticFilters.FILTER_PERMANENT_CREATURE));
|
||||
this.getSpellAbility().addEffect(new DealtDamageToCreatureBySourceDies(this, Duration.EndOfTurn));
|
||||
this.getSpellAbility().addWatcher(new DamagedByWatcher(false));
|
||||
|
||||
// Foretell {R}
|
||||
this.addAbility(new ForetellAbility(this, "{R}"));
|
||||
}
|
||||
|
||||
private CrushTheWeak(final CrushTheWeak card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CrushTheWeak copy() {
|
||||
return new CrushTheWeak(this);
|
||||
}
|
||||
}
|
|
@ -90,6 +90,7 @@ public final class Kaldheim extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Cinderheart Giant", 126, Rarity.COMMON, mage.cards.c.CinderheartGiant.class));
|
||||
cards.add(new SetCardInfo("Clarion Spirit", 6, Rarity.UNCOMMON, mage.cards.c.ClarionSpirit.class));
|
||||
cards.add(new SetCardInfo("Cleaving Reaper", 376, Rarity.RARE, mage.cards.c.CleavingReaper.class));
|
||||
cards.add(new SetCardInfo("Crush the Weak", 128, Rarity.UNCOMMON, mage.cards.c.CrushTheWeak.class));
|
||||
cards.add(new SetCardInfo("Cyclone Summoner", 52, Rarity.RARE, mage.cards.c.CycloneSummoner.class));
|
||||
cards.add(new SetCardInfo("Darkbore Pathway", 254, Rarity.RARE, mage.cards.d.DarkborePathway.class));
|
||||
cards.add(new SetCardInfo("Deathknell Berserker", 83, Rarity.COMMON, mage.cards.d.DeathknellBerserker.class));
|
||||
|
|
Loading…
Reference in a new issue