From faecfd65fe91323632504928558b356bfe520373 Mon Sep 17 00:00:00 2001 From: Lee Tran <54418451+LeeTranMN@users.noreply.github.com> Date: Thu, 9 Jul 2020 16:25:25 -0500 Subject: [PATCH] fix message when moving cards to bottom of library (#4006) --- cockatrice/src/messagelogwidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/messagelogwidget.cpp b/cockatrice/src/messagelogwidget.cpp index b6df0985..65ed5e12 100644 --- a/cockatrice/src/messagelogwidget.cpp +++ b/cockatrice/src/messagelogwidget.cpp @@ -326,8 +326,8 @@ void MessageLogWidget::logMoveCard(Player *player, } else if (targetZoneName == deckConstant()) { if (newX == -1) { finalStr = tr("%1 puts %2%3 into their library."); - } else if (newX == targetZone->getCards().size() - 1) { - finalStr = tr("%1 puts %2%3 on bottom of their library."); + } else if (newX >= targetZone->getCards().size()) { + finalStr = tr("%1 puts %2%3 onto the bottom of their library."); } else if (newX == 0) { finalStr = tr("%1 puts %2%3 on top of their library."); } else {