diff --git a/Mage.Sets/src/mage/cards/t/ThroneOfTheGodPharaoh.java b/Mage.Sets/src/mage/cards/t/ThroneOfTheGodPharaoh.java index f87a185021..55037f645d 100644 --- a/Mage.Sets/src/mage/cards/t/ThroneOfTheGodPharaoh.java +++ b/Mage.Sets/src/mage/cards/t/ThroneOfTheGodPharaoh.java @@ -1,8 +1,7 @@ - package mage.cards.t; -import java.util.UUID; import mage.abilities.common.BeginningOfEndStepTriggeredAbility; +import mage.abilities.dynamicvalue.DynamicValue; import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount; import mage.abilities.effects.common.LoseLifeOpponentsEffect; import mage.cards.CardImpl; @@ -14,25 +13,32 @@ import mage.filter.FilterPermanent; import mage.filter.common.FilterControlledCreaturePermanent; import mage.filter.predicate.permanent.TappedPredicate; +import java.util.UUID; + /** - * * @author Styxo */ public final class ThroneOfTheGodPharaoh extends CardImpl { - private static final FilterPermanent filter = new FilterControlledCreaturePermanent("tapped creature you control"); + private static final FilterPermanent filter = new FilterControlledCreaturePermanent(); static { filter.add(TappedPredicate.instance); } + private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter); + public ThroneOfTheGodPharaoh(UUID ownerId, CardSetInfo setInfo) { super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}"); addSuperType(SuperType.LEGENDARY); // At the beginning of your end step, each opponent loses life equal to the number of tapped creatures you control. - this.addAbility(new BeginningOfEndStepTriggeredAbility(new LoseLifeOpponentsEffect(new PermanentsOnBattlefieldCount(filter)), TargetController.YOU, false)); + this.addAbility(new BeginningOfEndStepTriggeredAbility( + new LoseLifeOpponentsEffect(xValue).setText( + "each opponent loses life equal to the number of tapped creatures you control" + ), TargetController.YOU, false + )); } private ThroneOfTheGodPharaoh(final ThroneOfTheGodPharaoh card) {