ThronesDB / thronesdb

A Deckbuilder for A Game of Thrones 2nd Edition LCG.
https://thronesdb.com
MIT License
35 stars 37 forks source link

Frontend deck validation fails for Uniting the Realm (WK) if faction-loyal agendas are included. #951

Closed stopfstedt closed 1 month ago

stopfstedt commented 1 month ago

Frontend bug only, reported via GOT Discord.

To illustrate the issue - this perfectly legal deck is flagged as invalid due to a bug in the client-side deck validation engine (the backend counterpart handles this correctly)

image

The issue here is over-processing of cards - only cards included the draw deck should be custom-validated here. For the plot deck, the default deck building rules should be validated against.