Added hint to monstrous. Fixes #6765

This commit is contained in:
18ths 2020-07-07 17:57:25 +02:00
parent 181eb871fe
commit 543ac206be
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,24 @@
package mage.abilities.hint.common;
import mage.abilities.Ability;
import mage.abilities.condition.common.MonstrousCondition;
import mage.abilities.hint.ConditionHint;
import mage.abilities.hint.Hint;
import mage.game.Game;
public enum MonstrousHint implements Hint {
instance;
private static final ConditionHint hint = new ConditionHint(MonstrousCondition.instance,
"{this} is monstrous", null,
"{this} isn't monstrous", null, true);
@Override
public String getText(Game game, Ability ability) {
return hint.getText(game, ability);
}
@Override
public Hint copy() {
return instance;
}
}

View file

@ -7,6 +7,7 @@ import mage.abilities.ActivatedAbilityImpl;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.abilities.hint.common.MonstrousHint;
import mage.constants.Outcome;
import mage.constants.Zone;
import mage.counters.CounterType;
@ -54,6 +55,8 @@ public class MonstrosityAbility extends ActivatedAbilityImpl {
public MonstrosityAbility(String manaString, int monstrosityValue) {
super(Zone.BATTLEFIELD, new BecomeMonstrousSourceEffect(monstrosityValue),new ManaCostsImpl(manaString));
this.monstrosityValue = monstrosityValue;
this.addHint(MonstrousHint.instance);
}
public MonstrosityAbility(final MonstrosityAbility ability) {