[AKH] fixed Throne of the God-Pharaoh text (fixes #7647)

This commit is contained in:
Evan Kranzler 2021-03-05 17:26:40 -05:00
parent 622d13484f
commit b55e3d52c6

View file

@ -1,8 +1,7 @@
package mage.cards.t; package mage.cards.t;
import java.util.UUID;
import mage.abilities.common.BeginningOfEndStepTriggeredAbility; import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount; import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.effects.common.LoseLifeOpponentsEffect; import mage.abilities.effects.common.LoseLifeOpponentsEffect;
import mage.cards.CardImpl; import mage.cards.CardImpl;
@ -14,25 +13,32 @@ import mage.filter.FilterPermanent;
import mage.filter.common.FilterControlledCreaturePermanent; import mage.filter.common.FilterControlledCreaturePermanent;
import mage.filter.predicate.permanent.TappedPredicate; import mage.filter.predicate.permanent.TappedPredicate;
import java.util.UUID;
/** /**
*
* @author Styxo * @author Styxo
*/ */
public final class ThroneOfTheGodPharaoh extends CardImpl { 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 { static {
filter.add(TappedPredicate.instance); filter.add(TappedPredicate.instance);
} }
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter);
public ThroneOfTheGodPharaoh(UUID ownerId, CardSetInfo setInfo) { public ThroneOfTheGodPharaoh(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}"); super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
addSuperType(SuperType.LEGENDARY); addSuperType(SuperType.LEGENDARY);
// At the beginning of your end step, each opponent loses life equal to the number of tapped creatures you control. // 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) { private ThroneOfTheGodPharaoh(final ThroneOfTheGodPharaoh card) {