mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
Added city blessing hint as enum
This commit is contained in:
parent
043a7af086
commit
0e61a0adeb
2 changed files with 26 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue