View Single Post
12-25-09, 12:46 AM   #4
Manaman
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: Apr 2006
Posts: 39
Oh, I was going off of WOWWiki's API section: http://www.wowwiki.com/API_UnitGroupRolesAssigned, which says:

Code:
isTank, isHeal, isDPS = UnitGroupRolesAssigned(Unit);
While other API articles states ("unit"), and not as written above with (Unit). So I went with that notation of no quotations. As well, it appeared the return from that API call was in the form of either isTank = true, isHeal = true, or isDPS = true. But you say I just do:

Code:
AM_Tank = UnitGroupRolesAssigned("player")
without needing to separate out the isHeal or isDPS responses somehow? As I said above, I am new to lua. Thanks.
  Reply With Quote