Added hint to Goma Fada Vanguard
package mage.cards.g;
-import java.util.UUID;
-
import mage.MageInt;
import mage.MageObject;
import mage.abilities.Ability;
import mage.abilities.common.AttacksTriggeredAbility;
+import mage.abilities.dynamicvalue.DynamicValue;
+import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.effects.common.combat.CantBlockTargetEffect;
-import mage.cards.s.SpellstutterSprite;
-import mage.constants.Duration;
-import mage.constants.SubType;
+import mage.abilities.hint.Hint;
+import mage.abilities.hint.ValueHint;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
+import mage.constants.Duration;
+import mage.constants.SubType;
import mage.filter.FilterPermanent;
-import mage.filter.common.FilterCreaturePermanent;
+import mage.filter.common.FilterControlledPermanent;
import mage.filter.common.FilterOpponentsCreaturePermanent;
import mage.filter.predicate.ObjectSourcePlayer;
import mage.filter.predicate.ObjectSourcePlayerPredicate;
import mage.game.Game;
import mage.target.TargetPermanent;
+import java.util.UUID;
+
/**
* @author TheElk801
*/
@@ -34,6 +37,10 @@ public final class GomaFadaVanguard extends CardImpl {
filter.add(GomaFadaVanguardPredicate.instance);
}
+ private static final FilterPermanent filter2 = new FilterControlledPermanent(SubType.WARRIOR);
+ private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter2);
+ private static final Hint hint = new ValueHint("Warriors you control", xValue);
+
public GomaFadaVanguard(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
@@ -45,7 +52,7 @@ public final class GomaFadaVanguard extends CardImpl {
// Whenever Goma Fada Vanguard attacks, target creature an opponent controls with power less than or equal to the number of Warriors you control can't block this turn.
Ability ability = new AttacksTriggeredAbility(new CantBlockTargetEffect(Duration.EndOfTurn), false);
ability.addTarget(new TargetPermanent(filter));
- this.addAbility(ability);
+ this.addAbility(ability.addHint(hint));
}
private GomaFadaVanguard(final GomaFadaVanguard card) {
