[ECL] Implement Hexing Squelcher

This commit is contained in:
theelk801 2026-01-07 09:38:38 -05:00
parent 44444bb3b5
commit 059356bfaa
2 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,60 @@
package mage.cards.h;
import mage.MageInt;
import mage.abilities.common.CantBeCounteredSourceAbility;
import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.costs.common.PayLifeCost;
import mage.abilities.effects.common.CantBeCounteredControlledEffect;
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
import mage.abilities.keyword.WardAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.filter.FilterSpell;
import mage.filter.StaticFilters;
import mage.filter.common.FilterCreatureSpell;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class HexingSquelcher extends CardImpl {
private static final FilterSpell filter = new FilterCreatureSpell("creature spells you control");
public HexingSquelcher(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
this.subtype.add(SubType.GOBLIN);
this.subtype.add(SubType.SORCERER);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// This spell can't be countered.
this.addAbility(new CantBeCounteredSourceAbility());
// Ward--Pay 2 life.
this.addAbility(new WardAbility(new PayLifeCost(2)));
// Spells you control can't be countered.
this.addAbility(new SimpleStaticAbility(new CantBeCounteredControlledEffect(filter, Duration.WhileOnBattlefield)));
// Other creatures you control have "Ward--Pay 2 life."
this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect(
new WardAbility(new PayLifeCost(2)), Duration.WhileOnBattlefield,
StaticFilters.FILTER_PERMANENT_CREATURES, true
)));
}
private HexingSquelcher(final HexingSquelcher card) {
super(card);
}
@Override
public HexingSquelcher copy() {
return new HexingSquelcher(this);
}
}

View file

@ -90,6 +90,8 @@ public final class LorwynEclipsed extends ExpansionSet {
cards.add(new SetCardInfo("Hallowed Fountain", 265, Rarity.RARE, mage.cards.h.HallowedFountain.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Hallowed Fountain", 347, Rarity.RARE, mage.cards.h.HallowedFountain.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Heirloom Auntie", 107, Rarity.COMMON, mage.cards.h.HeirloomAuntie.class));
cards.add(new SetCardInfo("Hexing Squelcher", 145, Rarity.RARE, mage.cards.h.HexingSquelcher.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Hexing Squelcher", 317, Rarity.RARE, mage.cards.h.HexingSquelcher.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("High Perfect Morcant", 229, Rarity.RARE, mage.cards.h.HighPerfectMorcant.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("High Perfect Morcant", 373, Rarity.RARE, mage.cards.h.HighPerfectMorcant.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Impolite Entrance", 146, Rarity.UNCOMMON, mage.cards.i.ImpoliteEntrance.class));