Skip to content

Data member of a ClientCard is null #149

@mattiacolucci

Description

@mattiacolucci

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions