Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data member of a ClientCard is null #149

Open
mattiacolucci opened this issue Jul 7, 2022 · 1 comment
Open

Data member of a ClientCard is null #149

mattiacolucci opened this issue Jul 7, 2022 · 1 comment

Comments

@mattiacolucci
Copy link

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

@mattiacolucci
Copy link
Author

mattiacolucci commented Jul 8, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant