Fixed test

This commit is contained in:
Oleg Agafonov 2020-08-16 00:37:29 +04:00
parent 98e2d9b7aa
commit 7f02a37dbb
2 changed files with 7 additions and 5 deletions

View file

@ -29,13 +29,13 @@ import java.util.UUID;
*/
public final class AlpineHoundmaster extends CardImpl {
private static final FilterPermanent filter = new FilterAttackingCreature();
private static final FilterPermanent filter = new FilterAttackingCreature("the number of other attacking creatures");
static {
filter.add(AnotherPredicate.instance);
}
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter);
private static final DynamicValue xValue = new PermanentsOnBattlefieldCount(filter, null);
public AlpineHoundmaster(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{R}{W}");
@ -50,7 +50,7 @@ public final class AlpineHoundmaster extends CardImpl {
// Whenever Alpine Houndmaster attacks, it gets +X/+0 until end of turn, where X is the number of other attacking creatures.
this.addAbility(new AttacksTriggeredAbility(new BoostSourceEffect(
xValue, StaticValue.get(0), Duration.EndOfTurn
xValue, StaticValue.get(0), Duration.EndOfTurn, true
), false));
}

View file

@ -14,6 +14,7 @@ import mage.constants.ComparisonType;
import mage.constants.Zone;
import mage.filter.StaticFilters;
import mage.target.common.TargetCardInYourGraveyard;
import mage.watchers.common.PlayerGainedLifeWatcher;
import java.util.UUID;
@ -31,7 +32,8 @@ public final class SanguineIndulgence extends CardImpl {
// This spell costs {3} less to cast if you've gained 3 or more life this turn.
this.addAbility(new SimpleStaticAbility(
Zone.ALL, new SpellCostReductionSourceEffect(3, condition)
).setRuleAtTheTop(true).addHint(hint));
).addHint(hint).setRuleAtTheTop(true),
new PlayerGainedLifeWatcher());
// Return up to two target creature cards from your graveyard to your hand.
this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());