Add hint to Serra's Sanctum

This commit is contained in:
PurpleCrowbar 2023-05-03 16:45:39 +01:00
parent f5ea6565a4
commit ffef3b25cd

View file

@ -5,6 +5,8 @@ package mage.cards.s;
import java.util.UUID;
import mage.Mana;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.hint.Hint;
import mage.abilities.hint.ValueHint;
import mage.abilities.mana.DynamicManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
@ -25,12 +27,16 @@ public final class SerrasSanctum extends CardImpl {
filter.add(CardType.ENCHANTMENT.getPredicate());
}
private static final Hint hint = new ValueHint(
"Number of enchantments you control", new PermanentsOnBattlefieldCount(filter)
);
public SerrasSanctum(UUID ownerId, CardSetInfo setInfo) {
super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
addSuperType(SuperType.LEGENDARY);
DynamicManaAbility ability = new DynamicManaAbility(Mana.WhiteMana(1), new PermanentsOnBattlefieldCount(filter));
this.addAbility(ability);
this.addAbility(ability.addHint(hint));
}
private SerrasSanctum(final SerrasSanctum card) {