[ECL] Implement Boggart Prankster

This commit is contained in:
theelk801 2026-01-09 12:17:12 -05:00
parent b760c01b27
commit 194afb7372
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,51 @@
package mage.cards.b;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.AttacksWithCreaturesTriggeredAbility;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledPermanent;
import mage.filter.predicate.permanent.AttackingPredicate;
import mage.target.TargetPermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class BoggartPrankster extends CardImpl {
private static final FilterPermanent filter = new FilterControlledPermanent(SubType.GOBLIN, "attacking Goblin you control");
static {
filter.add(AttackingPredicate.instance);
}
public BoggartPrankster(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{B}");
this.subtype.add(SubType.GOBLIN);
this.subtype.add(SubType.WARRIOR);
this.power = new MageInt(1);
this.toughness = new MageInt(3);
// Whenever you attack, target attacking Goblin you control gets +1/+0 until end of turn.
Ability ability = new AttacksWithCreaturesTriggeredAbility(new BoostTargetEffect(1, 0), 1);
ability.addTarget(new TargetPermanent(filter));
this.addAbility(ability);
}
private BoggartPrankster(final BoggartPrankster card) {
super(card);
}
@Override
public BoggartPrankster copy() {
return new BoggartPrankster(this);
}
}

View file

@ -55,6 +55,7 @@ public final class LorwynEclipsed extends ExpansionSet {
cards.add(new SetCardInfo("Boggart Cursecrafter", 206, Rarity.UNCOMMON, mage.cards.b.BoggartCursecrafter.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Boggart Cursecrafter", 331, Rarity.UNCOMMON, mage.cards.b.BoggartCursecrafter.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Boggart Mischief", 92, Rarity.UNCOMMON, mage.cards.b.BoggartMischief.class));
cards.add(new SetCardInfo("Boggart Prankster", 93, Rarity.COMMON, mage.cards.b.BoggartPrankster.class));
cards.add(new SetCardInfo("Bogslither's Embrace", 94, Rarity.COMMON, mage.cards.b.BogslithersEmbrace.class));
cards.add(new SetCardInfo("Boldwyr Aggressor", 125, Rarity.UNCOMMON, mage.cards.b.BoldwyrAggressor.class));
cards.add(new SetCardInfo("Boneclub Berserker", 126, Rarity.COMMON, mage.cards.b.BoneclubBerserker.class));