Originally Posted by Garkin
... and then make a new definition of GuildRosterRow_OnMouseUp method.
|
Or amend its environment. Not entirely sure, but I think it should work (as long as the method is accessible):
Lua Code:
local orgEnv = getfenv(GUILD_ROSTER_KEYBOARD.GuildRosterRow_OnMouseUp)
local newEnv = setmetatable({playerAlliance = GetUnitAlliance("player")}, {__index = orgEnv})
setfenv(GUILD_ROSTER_KEYBOARD.GuildRosterRow_OnMouseUp, newEnv)