Open mattiacolucci opened 2 years ago
I updated the cards.cdb in bin/debug with the one used by edopro in the game, that includes new cards, like Lubellion for example; Did I do something wrong?
Il giorno gio 7 lug 2022 alle ore 16:21 Wind2009-Louse < @.***> ha scritto:
When using pre-release cards, you should update windbot's card.cdb.
— Reply to this email directly, view it on GitHub https://github.com/IceYGO/windbot/issues/149#issuecomment-1177693404, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXSEPN6DZPCPGNHZODGJMCDVS3RVHANCNFSM525LOYVQ . You are receiving this because you authored the thread.Message ID: @.***>
I noticed that the Data member of certain Cards is null; the issue appeared while using the function Bot.MonsterZone.IsExistingMatchingCard() to see if on the field there were cards that matched a certain condition Since there were cards accepted, the function still return false; so I procedeed with a debug and found that the Data member of the card "Lubellion the searing dragon" was null; since IsExistingMatchingCard returns the return of GetMatchingCardsCount, this one base its return on a condition like card.Data!=null && filter(card) so even if the card matched the condition given (so filter(card) returned true) since the Data member was null, the function did not found cards that match the condition, when instead there was one