foul-magics/Mage/src/main/java/mage/abilities/hint/common/PermanentsSacrificedThisTurnHint.java
Susucre 496faaf5cb
[LTR] Implement The Balrog, Durin's Bane (#10515)
* [LTR] Implement The Balrog, Durin's Bane

I could use someone more experienced for this card:
Should the watcher `PermanentsSacrificedWatcher` be initialized locally in the card's class, or is a global initializing in GameImpl.java alright? I went for the latter for now, as my base for implementing the static cost reduction was Blood for the Blood God!

* apply review

* no longer instantiate watcher on every game.
2023-07-01 12:53:31 -04:00

28 lines
711 B
Java

package mage.abilities.hint.common;
import mage.abilities.Ability;
import mage.abilities.dynamicvalue.common.PermanentsSacrificedThisTurnCount;
import mage.abilities.hint.Hint;
import mage.abilities.hint.ValueHint;
import mage.game.Game;
/**
* @author Susucr
*/
public enum PermanentsSacrificedThisTurnHint implements Hint {
instance;
private static final Hint hint = new ValueHint(
"Permanents sacrificed this turn", PermanentsSacrificedThisTurnCount.instance
);
@Override
public String getText(Game game, Ability ability) {
return hint.getText(game, ability);
}
@Override
public PermanentsSacrificedThisTurnHint copy() {
return this;
}
}