Use INSTANCE_ENCOUNTER_ENGAGE_UNIT for better detection.
This commit is contained in:
parent
d47828edf5
commit
b59717d06c
1 changed files with 12 additions and 3 deletions
|
@ -206,8 +206,8 @@ function core:OnEnable()
|
||||||
self:RegisterEvent('UPDATE_INSTANCE_INFO')
|
self:RegisterEvent('UPDATE_INSTANCE_INFO')
|
||||||
self:RegisterEvent('CHAT_MSG_CURRENCY')
|
self:RegisterEvent('CHAT_MSG_CURRENCY')
|
||||||
self:RegisterEvent('LFG_UPDATE_RANDOM_INFO')
|
self:RegisterEvent('LFG_UPDATE_RANDOM_INFO')
|
||||||
-- Need another event to catch instance lockouts. CHAT_MSG_CURRENCY will not fire if you
|
-- Since CHAT_MSG_CURRENCY will not fire if you have max currency
|
||||||
-- receive no currency (ie. are Valor Point capped).
|
self:RegisterEvent('INSTANCE_ENCOUNTER_ENGAGE_UNIT')
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Get calendar events information
|
-- Get calendar events information
|
||||||
|
@ -239,6 +239,12 @@ function core:CHAT_MSG_CURRENCY()
|
||||||
RequestLFDPlayerLockInfo()
|
RequestLFDPlayerLockInfo()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Might only fire for encounters with a boss frame.
|
||||||
|
function core:INSTANCE_ENCOUNTER_ENGAGE_UNIT()
|
||||||
|
RequestRaidInfo()
|
||||||
|
RequestLFDPlayerLockInfo()
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -472,7 +478,10 @@ end
|
||||||
|
|
||||||
function core:DrawTooltip()
|
function core:DrawTooltip()
|
||||||
-- UpdateChores before we show the tooltip to make sure we have the most recent data
|
-- UpdateChores before we show the tooltip to make sure we have the most recent data
|
||||||
core:UpdateChores()
|
local level = UnitLevel('player')
|
||||||
|
if level == 85 then
|
||||||
|
core:UpdateChores()
|
||||||
|
end
|
||||||
|
|
||||||
if tooltip then
|
if tooltip then
|
||||||
tooltip:ClearAllPoints()
|
tooltip:ClearAllPoints()
|
||||||
|
|
Loading…
Reference in a new issue