fix Shadow of the Goblin

This commit is contained in:
xenohedron 2025-11-08 14:43:19 -05:00
parent 39a8945589
commit 8ac800b08b
2 changed files with 5 additions and 6 deletions

View file

@ -28,10 +28,9 @@ public final class ShadowOfTheGoblin extends CardImpl {
// Unreliable Visions -- At the beginning of your first main phase, discard a card. If you do, draw a card.
this.addAbility(new BeginningOfFirstMainTriggeredAbility(
new DoIfCostPaid(new DrawCardSourceControllerEffect(1), new DiscardCardCost()), false)
.withFlavorWord("Unreliable Visions")
);
this.addAbility(new BeginningOfFirstMainTriggeredAbility(new DoIfCostPaid(
new DrawCardSourceControllerEffect(1), null, new DiscardCardCost(), false
), false).withFlavorWord("Unreliable Visions"));
// Undying Vengeance -- Whenever you play a land or cast a spell from anywhere other than your hand, this enchantment deals 1 damage to each opponent.
this.addAbility(new ShadowOfTheGoblinTriggeredAbility(new DamagePlayersEffect(1, TargetController.OPPONENT))

View file

@ -61,7 +61,7 @@ public class ShadowOfTheGoblinTest extends CardTestPlayerBase {
addCard(Zone.HAND, playerA, "Mountain");
addCard(Zone.HAND, playerA, partyThrasher);
setChoice(playerA, false); // shadow trigger
setChoice(playerA, "Mountain"); // shadow trigger
waitStackResolved(1, PhaseStep.PRECOMBAT_MAIN);
playLand(1, PhaseStep.PRECOMBAT_MAIN, playerA, "Mountain");
@ -120,4 +120,4 @@ public class ShadowOfTheGoblinTest extends CardTestPlayerBase {
assertLife(playerB, 20 - 1 - 1); // land + spell from library
}
}
}