fixed Sarkhan's Unsealing second ability

This commit is contained in:
Evan Kranzler 2018-06-22 14:56:27 -04:00
parent ef705c1ca0
commit ea0b809c2b

View file

@ -2,7 +2,6 @@ package mage.cards.s;
import java.util.UUID;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.common.SpellCastControllerTriggeredAbility;
import mage.abilities.effects.common.DamageAllEffect;
import mage.abilities.effects.common.DamagePlayersEffect;
@ -34,7 +33,7 @@ public final class SarkhansUnsealing extends CardImpl {
static {
filter.add(new PowerPredicate(ComparisonType.MORE_THAN, 3));
filter.add(new PowerPredicate(ComparisonType.FEWER_THAN, 7));
filter2.add(new PowerPredicate(ComparisonType.MORE_THAN, 7));
filter2.add(new PowerPredicate(ComparisonType.MORE_THAN, 6));
filter3.add(Predicates.or(
new CardTypePredicate(CardType.CREATURE),
new CardTypePredicate(CardType.PLANESWALKER)
@ -46,14 +45,18 @@ public final class SarkhansUnsealing extends CardImpl {
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{R}");
// Whenever you cast a creature spell with power 4, 5, or 6, Sarkhan's Unsealing deals 4 damage to any target.
Ability ability = new SpellCastControllerTriggeredAbility(new DamageTargetEffect(4), filter, false);
Ability ability = new SpellCastControllerTriggeredAbility(
new DamageTargetEffect(4),
filter, false
);
ability.addTarget(new TargetAnyTarget());
this.addAbility(ability);
// Whenever you cast a creature spell with power 7 or greater, Sarkhan's Unsealing deals 4 damage to each opponent and each creature and planeswalker they control.
ability = new EntersBattlefieldTriggeredAbility(
ability = new SpellCastControllerTriggeredAbility(
new DamagePlayersEffect(4, TargetController.OPPONENT)
.setText("{this} deals 4 damage to each opponent")
.setText("{this} deals 4 damage to each opponent"),
filter2, false
);
ability.addEffect(
new DamageAllEffect(4, filter3)