From 9cd42bc4a5fb72fd9ac3690275b0865382ea24de Mon Sep 17 00:00:00 2001 From: xenohedron Date: Sun, 25 Jun 2023 23:30:06 -0400 Subject: [PATCH] Fix #10517 (Herald's Horn) --- Mage.Sets/src/mage/cards/h/HeraldsHorn.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Mage.Sets/src/mage/cards/h/HeraldsHorn.java b/Mage.Sets/src/mage/cards/h/HeraldsHorn.java index 2a41716f9e2..9a433237e96 100644 --- a/Mage.Sets/src/mage/cards/h/HeraldsHorn.java +++ b/Mage.Sets/src/mage/cards/h/HeraldsHorn.java @@ -80,6 +80,9 @@ class HeraldsHornEffect extends OneShotEffect { // If it's a creature card of the chosen type, you may reveal it and put it into your hand. FilterCreatureCard filter = new FilterCreatureCard("creature card of the chosen type"); SubType subtype = ChooseCreatureTypeEffect.getChosenCreatureType(source.getSourceId(), game); + if (subtype == null) { + return true; + } filter.add(subtype.getPredicate()); String message = "Reveal the top card of your library and put that card into your hand?"; if (card != null) {