mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Added creatures you control hint
This commit is contained in:
parent
cb289b1b04
commit
ae410d4d8d
2 changed files with 28 additions and 1 deletions
|
@ -4,6 +4,7 @@ import mage.abilities.TriggeredAbilityImpl;
|
||||||
import mage.abilities.dynamicvalue.common.CreaturesYouControlCount;
|
import mage.abilities.dynamicvalue.common.CreaturesYouControlCount;
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
import mage.abilities.effects.common.continuous.BoostTargetEffect;
|
||||||
|
import mage.abilities.hint.common.CreaturesYouControlHint;
|
||||||
import mage.cards.CardImpl;
|
import mage.cards.CardImpl;
|
||||||
import mage.cards.CardSetInfo;
|
import mage.cards.CardSetInfo;
|
||||||
import mage.constants.CardType;
|
import mage.constants.CardType;
|
||||||
|
@ -24,7 +25,7 @@ public final class AngelicExaltation extends CardImpl {
|
||||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{W}");
|
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{W}");
|
||||||
|
|
||||||
// Whenever a creature you control attacks alone, it gets +X/+X until end of turn, where X is the number of creatures you control.
|
// Whenever a creature you control attacks alone, it gets +X/+X until end of turn, where X is the number of creatures you control.
|
||||||
this.addAbility(new AngelicExaltationAbility());
|
this.addAbility(new AngelicExaltationAbility().addHint(CreaturesYouControlHint.instance));
|
||||||
}
|
}
|
||||||
|
|
||||||
private AngelicExaltation(final AngelicExaltation card) {
|
private AngelicExaltation(final AngelicExaltation card) {
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
package mage.abilities.hint.common;
|
||||||
|
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.dynamicvalue.common.CreaturesYouControlCount;
|
||||||
|
import mage.abilities.hint.Hint;
|
||||||
|
import mage.abilities.hint.ValueHint;
|
||||||
|
import mage.game.Game;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author JayDi85
|
||||||
|
*/
|
||||||
|
public enum CreaturesYouControlHint implements Hint {
|
||||||
|
|
||||||
|
instance;
|
||||||
|
private static final Hint hint = new ValueHint("Creatures you control", CreaturesYouControlCount.instance);
|
||||||
|
|
||||||
|
@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