Cockatrice/cockatrice/src/game_graphics
BruebachL 711386574d
[Client] Tell the user when their playmat art is blocked (#7533)
* [Client] Tell the user when their playmat art is blocked

A server DENY rule silently drops banned playmat art: SetPlaymat fails
with no handler and DeckSelect strips the mat while answering RespOk.

Surface both cases with the same critical message box the banner card
art flow uses. DeckSelect strips are detected by comparing the
requested mat, passed via PendingCommand extraData, against the
server-echoed deck. Notices dedupe per card and reset on success.

* [Client] Gate playmat blocked notice on RespFunctionNotAllowed per review

Only SetPlaymat with RespFunctionNotAllowed signals a card art DENY
rule. Older servers answer RespInvalidCommand and strip the mat from
DeckSelect, so drop the DeckSelect comparison to avoid false
blacklisted popups on pre-playmat servers.

---------

Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
Co-authored-by: BruebachL <bruebachl@users.noreply.github.com>
2026-10-16 19:50:57 +02:00
..
board [Game] Raise rubber band above count label and collapse multi-selection on click (#7451) 2026-10-15 11:35:03 +02:00
deckview [Client] Tell the user when their playmat art is blocked (#7533) 2026-10-16 19:50:57 +02:00
dialogs [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
log [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
player [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
tally [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
zones [Game] Use native title bar height for ZoneViewWidget close button (#7450) 2026-10-09 06:08:15 +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 [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
game_scene.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
game_view.cpp [Game] Raise rubber band above count label and collapse multi-selection on click (#7451) 2026-10-15 11:35:03 +02:00
game_view.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
hand_counter.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
hand_counter.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
phases_toolbar.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
phases_toolbar.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +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