This commit is contained in:
Alex W. Jackson 2022-04-19 01:59:11 -04:00
parent e24952a4a6
commit c074561048

View file

@ -1,7 +1,7 @@
package mage.cards.g;
import java.util.UUID;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.effects.common.LoseLifeOpponentsEffect;
import mage.cards.CardImpl;
@ -15,11 +15,15 @@ import mage.filter.StaticFilters;
*/
public final class GruesomeFate extends CardImpl {
private static final DynamicValue xValue
= new PermanentsOnBattlefieldCount(StaticFilters.FILTER_PERMANENT_CREATURE_CONTROLLED);
public GruesomeFate(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}");
// Each opponent loses 1 life for each creature you control.
this.getSpellAbility().addEffect(new LoseLifeOpponentsEffect(new PermanentsOnBattlefieldCount(StaticFilters.FILTER_PERMANENT_CREATURE_CONTROLLED)));
this.getSpellAbility().addEffect(new LoseLifeOpponentsEffect(xValue)
.setText("each opponent loses 1 life for each creature you control"));
}
private GruesomeFate(final GruesomeFate card) {