diff --git a/Mage.Sets/src/mage/sets/odyssey/Mudhole.java b/Mage.Sets/src/mage/sets/odyssey/Mudhole.java index b2fa871a80..e2be1a8d05 100644 --- a/Mage.Sets/src/mage/sets/odyssey/Mudhole.java +++ b/Mage.Sets/src/mage/sets/odyssey/Mudhole.java @@ -83,10 +83,13 @@ class MudholeEffect extends OneShotEffect { @Override public boolean apply(Game game, Ability source) { - Player targetPlayer = game.getPlayer(source.getFirstTarget()); - for (Card card: targetPlayer.getGraveyard().getCards(filter, game)) { - card.moveToExile(null, "", source.getId(), game); - } + Player targetPlayer = game.getPlayer(targetPointer.getFirst(game, source)); + if (targetPlayer != null) { + for (Card card: targetPlayer.getGraveyard().getCards(filter, game)) { + card.moveToExile(null, "", source.getSourceId(), game); + } + return true; + } return false; }