From 65ad97ced54fafd680f298d7a2878dcb6252bdf4 Mon Sep 17 00:00:00 2001 From: Oleg Agafonov Date: Mon, 22 Feb 2021 07:58:31 +0400 Subject: [PATCH] * King Narfi's Betrayal - fixed rollback error on no targets for exile; --- Mage/src/main/java/mage/players/PlayerImpl.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/players/PlayerImpl.java b/Mage/src/main/java/mage/players/PlayerImpl.java index 771e1b8bad..f3b7debffc 100644 --- a/Mage/src/main/java/mage/players/PlayerImpl.java +++ b/Mage/src/main/java/mage/players/PlayerImpl.java @@ -4180,7 +4180,9 @@ public abstract class PlayerImpl implements Player, Serializable { @Override public boolean moveCardsToExile(Card card, Ability source, Game game, boolean withName, UUID exileId, String exileZoneName) { Set cards = new HashSet<>(); - cards.add(card); + if (card != null) { + cards.add(card); + } return moveCardsToExile(cards, source, game, withName, exileId, exileZoneName); }