Added hints to cards;

This commit is contained in:
Oleg Agafonov 2019-02-07 15:21:01 +04:00
parent aedc3dde2c
commit 92ce8be91d
3 changed files with 5 additions and 2 deletions

View file

@ -8,6 +8,7 @@ import mage.abilities.condition.common.PermanentsOnTheBattlefieldCondition;
import mage.abilities.decorator.ConditionalContinuousEffect; import mage.abilities.decorator.ConditionalContinuousEffect;
import mage.abilities.effects.common.continuous.BoostSourceEffect; import mage.abilities.effects.common.continuous.BoostSourceEffect;
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect; import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
import mage.abilities.hint.ConditionHint;
import mage.abilities.keyword.HasteAbility; import mage.abilities.keyword.HasteAbility;
import mage.abilities.keyword.TrampleAbility; import mage.abilities.keyword.TrampleAbility;
import mage.cards.CardImpl; import mage.cards.CardImpl;
@ -27,6 +28,7 @@ public final class ChargingWarBoar extends CardImpl {
private static final Condition condition private static final Condition condition
= new PermanentsOnTheBattlefieldCondition(new FilterControlledPlaneswalkerPermanent(SubType.DOMRI)); = new PermanentsOnTheBattlefieldCondition(new FilterControlledPlaneswalkerPermanent(SubType.DOMRI));
private static final ConditionHint hint = new ConditionHint(condition, "You control Domri planeswalker");
public ChargingWarBoar(UUID ownerId, CardSetInfo setInfo) { public ChargingWarBoar(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}{G}"); super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}{G}");
@ -51,6 +53,7 @@ public final class ChargingWarBoar extends CardImpl {
TrampleAbility.getInstance(), Duration.WhileOnBattlefield TrampleAbility.getInstance(), Duration.WhileOnBattlefield
), condition, "and has trample" ), condition, "and has trample"
)); ));
ability.addHint(hint);
this.addAbility(ability); this.addAbility(ability);
} }

View file

@ -12,7 +12,7 @@ import mage.game.Game;
public enum CitysBlessingHint implements Hint { public enum CitysBlessingHint implements Hint {
instance; instance;
private static final ConditionHint hint = new ConditionHint(CitysBlessingCondition.instance, "Have city's blessing"); private static final ConditionHint hint = new ConditionHint(CitysBlessingCondition.instance, "You have city's blessing");
@Override @Override
public String getText(Game game, Ability ability) { public String getText(Game game, Ability ability) {

View file

@ -13,7 +13,7 @@ import mage.game.Game;
public enum DeliriumHint implements Hint { public enum DeliriumHint implements Hint {
instance; instance;
private static final ConditionHint hint = new ConditionHint(DeliriumCondition.instance, "4+ card types in the graveyard"); private static final ConditionHint hint = new ConditionHint(DeliriumCondition.instance, "4+ card types in your graveyard");
@Override @Override
public String getText(Game game, Ability ability) { public String getText(Game game, Ability ability) {