Cockatrice/cockatrice
Vasco Guerreiro Vintém Morais 3a62dfb3dc Fix #6659: Correct logging for bottom-of-library card moves
Cause:
- This issue happens due to logic of moving the card from the top of the
  deck being reused when moving from the bottom of the deck, in a way
  that makes it impossible to check if the card came from the bottom.

Resolution:
- Updated the logging logic in the client for card moves.
- Added a gRPC parameter ('is_from_bottom') for card moves.
- Updates the server logic to reverse the order of the card move if the
'is_from_bottom' parameter is true.
- Added a test to show the expected behaviour of the fix.

NOTE: While the changes in this patch seem big, this is due to changing
the loop in the moveCard function to a helper function, in order to make
the bug fix change. The only change to the loop was to pass a
variable attribution to the moveCard function because it was redundant
to be in the loop.
2026-03-30 10:25:52 +01:00
..
resources [Search] Fix OR usage in examples (#6628) 2026-02-24 01:34:23 +01:00
sounds Add cmake format (#4618) 2022-05-08 21:22:43 +02:00
src Fix #6659: Correct logging for bottom-of-library card moves 2026-03-30 10:25:52 +01:00
themes Add cmake format (#4618) 2022-05-08 21:22:43 +02:00
translations Translate cockatrice/cockatrice_en@source.ts in it (#6724) 2026-03-21 10:13:43 +01:00
.qdevelop icon_draw and icon_untap added, icon_general and icon_messages modified 2009-07-31 13:37:16 +02:00
CMakeLists.txt Add local game options (#6669) 2026-03-12 14:30:01 -07:00
cockatrice.desktop Updated Spanish translation 2011-07-16 11:38:57 +02:00
cockatrice.qrc [CardDatabaseDisplay] Reduce width by using icons (#6603) 2026-02-22 20:54:58 -08:00
cockatrice.rc Included uninstaller for Windows version 2010-09-17 15:26:07 +02:00
cockatrice_en@source.ts Update translation source strings (#6465) 2026-01-06 19:35:53 +01:00