Update Mudhole.java

This commit is contained in:
cbt33 2013-10-15 21:35:12 -04:00
parent 5d71f3491d
commit a2a2a40dac

View file

@ -83,9 +83,12 @@ class MudholeEffect extends OneShotEffect<MudholeEffect> {
@Override
public boolean apply(Game game, Ability source) {
Player targetPlayer = game.getPlayer(source.getFirstTarget());
Player targetPlayer = game.getPlayer(targetPointer.getFirst(game, source));
if (targetPlayer != null) {
for (Card card: targetPlayer.getGraveyard().getCards(filter, game)) {
card.moveToExile(null, "", source.getId(), game);
card.moveToExile(null, "", source.getSourceId(), game);
}
return true;
}
return false;
}