Talk:IsLegal (Method)

Add topic
Active discussions

Huh...

So, apparently, according to a forum post from january, this method always returns true whatever you send it as an argument as long as it's an integer, no matter if the badge is owned by the place or not, even if the badge doesn't exist. How in the world is a such method useful and how are we supposed to document it? I mean, are we supposed to say it returns true? I'd test myself, but I'm not BC, AKA: I can't make badges. --JulienDethurens 03:25, 10 April 2012 (EDT)

Whoever made that post probably tested in solo or edit mode, where the PlaceID is always 0, where every badge is legal (probably). --Anaminus 03:55, 10 April 2012 (EDT)
Perhaps. Since you have BC, do you think you can try (or anyone who has BC and sees this, actually)? --JulienDethurens 03:58, 10 April 2012 (EDT)
Tried it. Seems to be returning true for everything. I'd say it's a bug. --Anaminus 04:15, 10 April 2012 (EDT)
Return to "IsLegal (Method)" page.