Skip to content

Commit

Permalink
Add hints to several cards
Browse files Browse the repository at this point in the history
  • Loading branch information
PurpleCrowbar committed Oct 4, 2023
1 parent 075673a commit c1b9398
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 11 deletions.
6 changes: 1 addition & 5 deletions Mage.Sets/src/mage/cards/b/BloodlineKeeper.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,7 @@
*/
public final class BloodlineKeeper extends CardImpl {

private static final FilterControlledPermanent filter = new FilterControlledPermanent("you control five or more Vampires");

static {
filter.add(SubType.VAMPIRE.getPredicate());
}
private static final FilterControlledPermanent filter = new FilterControlledPermanent(SubType.VAMPIRE, "you control five or more Vampires");

public BloodlineKeeper(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{B}{B}");
Expand Down
3 changes: 2 additions & 1 deletion Mage.Sets/src/mage/cards/k/KnightOfTheEbonLegion.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import mage.abilities.effects.common.continuous.BoostSourceEffect;
import mage.abilities.effects.common.continuous.GainAbilitySourceEffect;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.abilities.hint.ConditionHint;
import mage.abilities.keyword.DeathtouchAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
Expand Down Expand Up @@ -52,7 +53,7 @@ public KnightOfTheEbonLegion(UUID ownerId, CardSetInfo setInfo) {
TargetController.YOU, false
), KnightOfTheEbonLegionCondition.instance, "At the beginning of your end step, " +
"if a player lost 4 or more life this turn, put a +1/+1 counter on {this}."
));
).addHint(new ConditionHint(KnightOfTheEbonLegionCondition.instance, "A player lost 4 or more life this turn")));
}

private KnightOfTheEbonLegion(final KnightOfTheEbonLegion card) {
Expand Down
12 changes: 10 additions & 2 deletions Mage.Sets/src/mage/cards/m/MalakirBloodwitch.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

package mage.cards.m;

import java.util.Set;
Expand All @@ -7,7 +6,9 @@
import mage.ObjectColor;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.hint.ValueHint;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.ProtectionAbility;
import mage.cards.CardImpl;
Expand All @@ -33,9 +34,16 @@ public MalakirBloodwitch(UUID ownerId, CardSetInfo setInfo) {
this.power = new MageInt(4);
this.toughness = new MageInt(4);

// Flying
this.addAbility(FlyingAbility.getInstance());

// Protection from white
this.addAbility(ProtectionAbility.from(ObjectColor.WHITE));
this.addAbility(new EntersBattlefieldTriggeredAbility(new MalakirBloodwitchEffect(), false));

// When Malakir Bloodwitch enters the battlefield, each opponent loses life equal to the number of Vampires you control. You gain life equal to the life lost this way.
this.addAbility(new EntersBattlefieldTriggeredAbility(new MalakirBloodwitchEffect(), false)
.addHint(new ValueHint("Vampires you control", new PermanentsOnBattlefieldCount(new FilterControlledPermanent(SubType.VAMPIRE))))
);
}

private MalakirBloodwitch(final MalakirBloodwitch card) {
Expand Down
1 change: 1 addition & 0 deletions Mage.Sets/src/mage/cards/o/OliviasWrath.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public OliviasWrath(UUID ownerId, CardSetInfo setInfo) {
"each non-Vampire creature gets -X/-X until end of turn, "
+ "where X is the number of Vampires you control"
));
this.getSpellAbility().addHint(hint);
}

private OliviasWrath(final OliviasWrath card) {
Expand Down
5 changes: 3 additions & 2 deletions Mage.Sets/src/mage/cards/s/SyggRiverCutthroat.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@

package mage.cards.s;

import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
import mage.abilities.condition.common.OpponentLostLifeCondition;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.hint.ConditionHint;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
Expand Down Expand Up @@ -35,7 +35,8 @@ public SyggRiverCutthroat(UUID ownerId, CardSetInfo setInfo) {
new DrawCardSourceControllerEffect(1),
TargetController.ANY,
new OpponentLostLifeCondition(ComparisonType.MORE_THAN, 2),
true));
true
).addHint(new ConditionHint(new OpponentLostLifeCondition(ComparisonType.MORE_THAN, 2), "An opponent lost 3 or more life this turn")));
}

private SyggRiverCutthroat(final SyggRiverCutthroat card) {
Expand Down
3 changes: 2 additions & 1 deletion Mage.Sets/src/mage/cards/t/TheBookOfVileDarkness.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.effects.OneShotEffect;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.hint.ConditionHint;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.cards.CardsImpl;
Expand Down Expand Up @@ -46,7 +47,7 @@ public TheBookOfVileDarkness(UUID ownerId, CardSetInfo setInfo) {
this.addAbility(new BeginningOfEndStepTriggeredAbility(
Zone.BATTLEFIELD, new CreateTokenEffect(new ZombieToken()), TargetController.YOU,
TheBookOfVileDarknessCondition.instance, false
));
).addHint(new ConditionHint(TheBookOfVileDarknessCondition.instance, "You lost 2 or more life this turn")));

// {T}, Exile The Book of Vile Darkness and artifacts you control named Eye of Vecna and Hand of Vecna: Create Vecna, a legendary 8/8 black Zombie God creature token with indestructible and all triggered abilities of the exiled cards.
Ability ability = new SimpleActivatedAbility(new TheBookOfVileDarknessEffect(), new TapSourceCost());
Expand Down

0 comments on commit c1b9398

Please sign in to comment.