* King Narfi's Betrayal - fixed rollback error on no targets for exile;

This commit is contained in:
Oleg Agafonov 2021-02-22 07:58:31 +04:00
parent 57ee01426f
commit 65ad97ced5

View file

@ -4180,7 +4180,9 @@ public abstract class PlayerImpl implements Player, Serializable {
@Override @Override
public boolean moveCardsToExile(Card card, Ability source, Game game, boolean withName, UUID exileId, String exileZoneName) { public boolean moveCardsToExile(Card card, Ability source, Game game, boolean withName, UUID exileId, String exileZoneName) {
Set<Card> cards = new HashSet<>(); Set<Card> cards = new HashSet<>();
cards.add(card); if (card != null) {
cards.add(card);
}
return moveCardsToExile(cards, source, game, withName, exileId, exileZoneName); return moveCardsToExile(cards, source, game, withName, exileId, exileZoneName);
} }