Fix incorrect login message, rework LibGroupTalentsWrapper
The login message was triggered incorrectly due to the "Beta" tag in the version string. This has been fixed. Almost completely removed due to impracticality with the 3.3.5a API. When RAID_ROSTER_UPDATE or PARTY_MEMBERS_CHANGED fires, data is unavailable for ~1.5 seconds. If these events fire again within that time, the timer needs to be restarted, leading to excessive code complexity and requiring handling for every edge case. Instead, we now simply check if the unit has changed when the library fires its callback.
This commit is contained in:
@@ -28,6 +28,11 @@ local prettyPrint = WeakAuras.prettyPrint
|
||||
WeakAurasTimers = setmetatable({}, {__tostring=function() return "WeakAuras" end})
|
||||
LibStub("AceTimer-3.0"):Embed(WeakAurasTimers)
|
||||
|
||||
WeakAuras.LGT = LibStub("LibGroupTalents-1.0") or {
|
||||
GetUnitTalentSpec = function() end,
|
||||
GetUnitRole = function() end
|
||||
}
|
||||
|
||||
Private.watched_trigger_events = {}
|
||||
|
||||
-- The worlds simplest callback system.
|
||||
@@ -1381,7 +1386,7 @@ local function scanForLoadsImpl(toCheck, event, arg1, ...)
|
||||
local _, race = UnitRace("player")
|
||||
local faction = UnitFactionGroup("player")
|
||||
local zoneId = GetCurrentMapAreaID()
|
||||
local role = WeakAuras.GetUnitRole("player")
|
||||
local role = WeakAuras.LGT:GetUnitRole("player")
|
||||
local raidRole = false;
|
||||
local raidID = UnitInRaid("player")
|
||||
if raidID then
|
||||
|
||||
Reference in New Issue
Block a user