Originally Posted by Jarod24
This seems like it's the trend with the newer functions; that they are returning true/false instead of 1/nil.
|
Makes sense. Lua didn't have a boolean type when those original functions were initially implemented. Even the upstream standard library used 1/nil returns.
IsInRaid() --true/false
IsInGroup() --true/false, will return true if you are in a raid as well as a party
|
Now that GetNumRaidMembers has morphed into GetNumGroupMembers, I wonder if GetRaidRosterInfo will return valid data while in a "plain" party? I'd like to think so, but haven't seen anything mentioned anywhere. Will try to test... sometime this week.
P.S.: I second Torhal's suggestion of getbeer/setbeer globals.