You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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:
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
The text was updated successfully, but these errors were encountered: