mirror of
https://github.com/correl/mage.git
synced 2024-11-25 03:00:11 +00:00
Add hint to Serra's Sanctum
This commit is contained in:
parent
f5ea6565a4
commit
ffef3b25cd
1 changed files with 7 additions and 1 deletions
|
@ -5,6 +5,8 @@ package mage.cards.s;
|
||||||
import java.util.UUID;
|
import java.util.UUID;
|
||||||
import mage.Mana;
|
import mage.Mana;
|
||||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||||
|
import mage.abilities.hint.Hint;
|
||||||
|
import mage.abilities.hint.ValueHint;
|
||||||
import mage.abilities.mana.DynamicManaAbility;
|
import mage.abilities.mana.DynamicManaAbility;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
|
@ -25,12 +27,16 @@ public final class SerrasSanctum extends CardImpl {
|
||||||
filter.add(CardType.ENCHANTMENT.getPredicate());
|
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) {
|
public SerrasSanctum(UUID ownerId, CardSetInfo setInfo) {
|
||||||
super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
|
super(ownerId,setInfo,new CardType[]{CardType.LAND},"");
|
||||||
addSuperType(SuperType.LEGENDARY);
|
addSuperType(SuperType.LEGENDARY);
|
||||||
|
|
||||||
DynamicManaAbility ability = new DynamicManaAbility(Mana.WhiteMana(1), new PermanentsOnBattlefieldCount(filter));
|
DynamicManaAbility ability = new DynamicManaAbility(Mana.WhiteMana(1), new PermanentsOnBattlefieldCount(filter));
|
||||||
this.addAbility(ability);
|
this.addAbility(ability.addHint(hint));
|
||||||
}
|
}
|
||||||
|
|
||||||
private SerrasSanctum(final SerrasSanctum card) {
|
private SerrasSanctum(final SerrasSanctum card) {
|
||||||
|
|
Loading…
Reference in a new issue