mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Added hints to cards;
This commit is contained in:
parent
aedc3dde2c
commit
92ce8be91d
3 changed files with 5 additions and 2 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue