[ONE] Implement Slaughter Singer

This commit is contained in:
theelk801 2023-01-21 12:20:29 -05:00
parent fd4a36788d
commit d461c6bbd5
2 changed files with 60 additions and 0 deletions

View file

@ -0,0 +1,59 @@
package mage.cards.s;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.AttacksAllTriggeredAbility;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.constants.SetTargetPointer;
import mage.constants.SubType;
import mage.abilities.keyword.ToxicAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.TargetController;
import mage.filter.common.FilterCreaturePermanent;
import mage.filter.predicate.mageobject.AbilityPredicate;
import mage.filter.predicate.mageobject.AnotherPredicate;
/**
* @author TheElk801
*/
public final class SlaughterSinger extends CardImpl {
private static final FilterCreaturePermanent filter
= new FilterCreaturePermanent("another creature you control with toxic");
static {
filter.add(AnotherPredicate.instance);
filter.add(TargetController.YOU.getControllerPredicate());
filter.add(new AbilityPredicate(ToxicAbility.class));
}
public SlaughterSinger(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{G}{W}");
this.subtype.add(SubType.PHYREXIAN);
this.subtype.add(SubType.CLERIC);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// Toxic 2
this.addAbility(new ToxicAbility(2));
// Whenever another creature you control with toxic attacks, it gets +1/+1 until end of turn.
this.addAbility(new AttacksAllTriggeredAbility(
new BoostTargetEffect(1, 1).setText("it gets +1/+1 until end of turn"),
false, filter, SetTargetPointer.PERMANENT, false
));
}
private SlaughterSinger(final SlaughterSinger card) {
super(card);
}
@Override
public SlaughterSinger copy() {
return new SlaughterSinger(this);
}
}

View file

@ -93,6 +93,7 @@ public final class PhyrexiaAllWillBeOne extends ExpansionSet {
cards.add(new SetCardInfo("Sheoldred's Edict", 108, Rarity.UNCOMMON, mage.cards.s.SheoldredsEdict.class));
cards.add(new SetCardInfo("Sinew Dancer", 32, Rarity.COMMON, mage.cards.s.SinewDancer.class));
cards.add(new SetCardInfo("Skrelv's Hive", 34, Rarity.RARE, mage.cards.s.SkrelvsHive.class));
cards.add(new SetCardInfo("Slaughter Singer", 216, Rarity.UNCOMMON, mage.cards.s.SlaughterSinger.class));
cards.add(new SetCardInfo("Staff of Compleation", 242, Rarity.MYTHIC, mage.cards.s.StaffOfCompleation.class));
cards.add(new SetCardInfo("Surgical Skullbomb", 243, Rarity.COMMON, mage.cards.s.SurgicalSkullbomb.class));
cards.add(new SetCardInfo("Swamp", 274, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));