[AKH] fixed Throne of the God-Pharaoh text (fixes
-
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) {
