mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Fixed test
This commit is contained in:
parent
98e2d9b7aa
commit
7f02a37dbb
2 changed files with 7 additions and 5 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
@ -30,8 +31,9 @@ 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));
|
||||
Zone.ALL, new SpellCostReductionSourceEffect(3, condition)
|
||||
).addHint(hint).setRuleAtTheTop(true),
|
||||
new PlayerGainedLifeWatcher());
|
||||
|
||||
// Return up to two target creature cards from your graveyard to your hand.
|
||||
this.getSpellAbility().addEffect(new ReturnFromGraveyardToHandTargetEffect());
|
||||
|
|
Loading…
Reference in a new issue