[40K] Implemented Screamer-Killer

This commit is contained in:
Evan Kranzler 2022-09-14 09:28:33 -04:00
parent a10b59e838
commit e7f9f6eeb4
2 changed files with 59 additions and 0 deletions

View file

@ -0,0 +1,58 @@
package mage.cards.s;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SpellCastControllerTriggeredAbility;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.keyword.TrampleAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.ComparisonType;
import mage.constants.SubType;
import mage.filter.FilterSpell;
import mage.filter.common.FilterCreatureSpell;
import mage.filter.predicate.mageobject.ManaValuePredicate;
import mage.target.common.TargetAnyTarget;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ScreamerKiller extends CardImpl {
private static final FilterSpell filter
= new FilterCreatureSpell("a creature spell with mana value 5 or greater");
static {
filter.add(new ManaValuePredicate(ComparisonType.MORE_THAN, 4));
}
public ScreamerKiller(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{R}");
this.subtype.add(SubType.TYRANID);
this.power = new MageInt(5);
this.toughness = new MageInt(5);
// Trample
this.addAbility(TrampleAbility.getInstance());
// Bio-Plasmic Scream -- Whenever you cast a creature spell with mana value 5 or greater, Screamer-Killer deals 5 damage to any target.
Ability ability = new SpellCastControllerTriggeredAbility(
new DamageTargetEffect(5), filter, false
);
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability.withFlavorWord("Bio-Plasmic Scream"));
}
private ScreamerKiller(final ScreamerKiller card) {
super(card);
}
@Override
public ScreamerKiller copy() {
return new ScreamerKiller(this);
}
}

View file

@ -59,6 +59,7 @@ public final class Warhammer40000 extends ExpansionSet {
cards.add(new SetCardInfo("Path of Ancestry", 287, Rarity.COMMON, mage.cards.p.PathOfAncestry.class));
cards.add(new SetCardInfo("Rampant Growth", 220, Rarity.COMMON, mage.cards.r.RampantGrowth.class));
cards.add(new SetCardInfo("Rugged Highlands", 292, Rarity.COMMON, mage.cards.r.RuggedHighlands.class));
cards.add(new SetCardInfo("Screamer-Killer", 84, Rarity.RARE, mage.cards.s.ScreamerKiller.class));
cards.add(new SetCardInfo("Sol Ring", 249, Rarity.UNCOMMON, mage.cards.s.SolRing.class));
cards.add(new SetCardInfo("Starstorm", 208, Rarity.RARE, mage.cards.s.Starstorm.class));
cards.add(new SetCardInfo("Szarekh, the Silent King", 1, Rarity.MYTHIC, mage.cards.s.SzarekhTheSilentKing.class));