Cockatrice/cockatrice/src/game_graphics
BruebachL 030e4f5871
[Game] Stop duplicate attach log entries (#7273)
Fix duplicate attach messages in the game log caused by a redundant
child arrow in CardItem::drawAttachArrow.

Unlike the sibling drawArrow, drawAttachArrow omitted the ``card ==
this`` guard when iterating selectedItems(). Because right-clicking a
card to open the attach menu selects that card, it was always present
in selectedItems(), producing a second arrow for the same source card.

On release both arrows sent an identical Command_AttachCard, so the
server broadcast two Event_AttachCard messages and the log rendered
"attaches to" twice. Mirror the drawArrow skip condition so the active
card is excluded and only one attach command is sent.

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
2026-09-07 13:37:13 +02:00
..
board [Game] Stop duplicate attach log entries (#7273) 2026-09-07 13:37:13 +02:00
deckview [Game] Render custom deck zones in the deck view (#7207) 2026-09-05 22:00:22 +02:00
dialogs [Settings] Shuffle some settings around (#7084) 2026-08-08 22:27:41 +02:00
log [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
player [Client] Fix pawn avatar cache key collision for players without a custom avatar (#4086) (#7264) 2026-09-07 08:21:26 +02:00
tally [Game] Implement total toughness tally (#7252) 2026-09-06 01:46:37 -07:00
zones [Game] Allow dropping cards at bottom of stack zone (#7230) 2026-09-01 12:11:31 +02:00
animated_item.h [Game] Generic Animation Interface (#7098) 2026-08-12 20:36:33 +02:00
card_dimensions.h [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
game_scene.cpp Close all zone views of a leaving player to avoid crashing (#4298) (#7270) 2026-09-07 02:51:38 +02:00
game_scene.h [GameScene] Sever connections properly. (#7191) 2026-09-01 11:31:11 +02:00
game_view.cpp [Game] Playmats (#7101) 2026-08-21 10:40:49 +02:00
game_view.h [Game] Playmats (#7101) 2026-08-21 10:40:49 +02:00
hand_counter.cpp [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
hand_counter.h [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
phases_toolbar.cpp [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
phases_toolbar.h [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
z_value_layer_manager.h [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00
z_values.h [Game] Move graphics out of game and into game_graphics (#6928) 2026-06-09 09:51:13 +02:00