[FIN] Implement Slash of Light

This commit is contained in:
theelk801 2025-05-22 17:09:29 -04:00
parent da3e6f1f8e
commit 0b74b0df43
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,48 @@
package mage.cards.s;
import mage.abilities.dynamicvalue.AdditiveDynamicValue;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.hint.Hint;
import mage.abilities.hint.ValueHint;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.filter.StaticFilters;
import mage.filter.common.FilterControlledPermanent;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class SlashOfLight extends CardImpl {
private static final DynamicValue xValue = new AdditiveDynamicValue(
new PermanentsOnBattlefieldCount(StaticFilters.FILTER_CONTROLLED_CREATURES),
new PermanentsOnBattlefieldCount(new FilterControlledPermanent(SubType.EQUIPMENT))
);
private static final Hint hint = new ValueHint("Creatures you control plus Equipment you control", xValue);
public SlashOfLight(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}");
// Slash of Light deals damage equal to the number of creatures you control plus the number of Equipment you control to target creature.
this.getSpellAbility().addEffect(new DamageTargetEffect(xValue)
.setText("{this} deals damage equal to the number of creatures you control " +
"plus the number of Equipment you control to target creature"));
this.getSpellAbility().addTarget(new TargetCreaturePermanent());
}
private SlashOfLight(final SlashOfLight card) {
super(card);
}
@Override
public SlashOfLight copy() {
return new SlashOfLight(this);
}
}

View file

@ -341,6 +341,7 @@ public final class FinalFantasy extends ExpansionSet {
cards.add(new SetCardInfo("Sin, Spira's Punishment", 242, Rarity.RARE, mage.cards.s.SinSpirasPunishment.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Sin, Spira's Punishment", 348, Rarity.RARE, mage.cards.s.SinSpirasPunishment.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Sin, Spira's Punishment", 508, Rarity.RARE, mage.cards.s.SinSpirasPunishment.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Slash of Light", 32, Rarity.COMMON, mage.cards.s.SlashOfLight.class));
cards.add(new SetCardInfo("Snow Villiers", 33, Rarity.UNCOMMON, mage.cards.s.SnowVilliers.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Snow Villiers", 432, Rarity.UNCOMMON, mage.cards.s.SnowVilliers.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Squall, SeeD Mercenary", 243, Rarity.RARE, mage.cards.s.SquallSeeDMercenary.class, NON_FULL_USE_VARIOUS));