Added city blessing hint as enum

This commit is contained in:
Oleg Agafonov 2019-02-05 17:38:36 +04:00
parent 043a7af086
commit 0e61a0adeb
2 changed files with 26 additions and 2 deletions

View file

@ -6,7 +6,7 @@ import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.decorator.ConditionalActivatedAbility;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.hint.ConditionHint;
import mage.abilities.hint.CitysBlessingHint;
import mage.abilities.keyword.AscendAbility;
import mage.abilities.mana.ColorlessManaAbility;
import mage.cards.CardImpl;
@ -36,7 +36,7 @@ public final class ArchOfOrazca extends CardImpl {
new GenericManaCost(5),
CitysBlessingCondition.instance);
ability.addCost(new TapSourceCost());
ability.addHint(new ConditionHint(CitysBlessingCondition.instance, "Have city's blessing"));
ability.addHint(CitysBlessingHint.instance);
this.addAbility(ability);
}

View file

@ -0,0 +1,24 @@
package mage.abilities.hint;
import mage.abilities.Ability;
import mage.abilities.condition.common.CitysBlessingCondition;
import mage.game.Game;
/**
* @author JayDi85
*/
public enum CitysBlessingHint implements Hint {
instance;
private static final ConditionHint hint = new ConditionHint(CitysBlessingCondition.instance, "Have city's blessing");
@Override
public String getText(Game game, Ability ability) {
return hint.getText(game, ability);
}
@Override
public Hint copy() {
return instance;
}
}