mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 09:05:10 -07:00
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> |
||
|---|---|---|
| .. | ||
| board | ||
| deckview | ||
| dialogs | ||
| log | ||
| player | ||
| tally | ||
| zones | ||
| animated_item.h | ||
| card_dimensions.h | ||
| game_scene.cpp | ||
| game_scene.h | ||
| game_view.cpp | ||
| game_view.h | ||
| hand_counter.cpp | ||
| hand_counter.h | ||
| phases_toolbar.cpp | ||
| phases_toolbar.h | ||
| z_value_layer_manager.h | ||
| z_values.h | ||