1
0
Fork 0

Use INSTANCE_ENCOUNTER_ENGAGE_UNIT for better detection.

This commit is contained in:
Andrew Tomaka 2011-10-03 22:04:55 -04:00
parent d47828edf5
commit b59717d06c

View file

@ -206,8 +206,8 @@ function core:OnEnable()
self:RegisterEvent('UPDATE_INSTANCE_INFO')
self:RegisterEvent('CHAT_MSG_CURRENCY')
self:RegisterEvent('LFG_UPDATE_RANDOM_INFO')
-- Need another event to catch instance lockouts. CHAT_MSG_CURRENCY will not fire if you
-- receive no currency (ie. are Valor Point capped).
-- Since CHAT_MSG_CURRENCY will not fire if you have max currency
self:RegisterEvent('INSTANCE_ENCOUNTER_ENGAGE_UNIT')
end
-- Get calendar events information
@ -239,6 +239,12 @@ function core:CHAT_MSG_CURRENCY()
RequestLFDPlayerLockInfo()
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()
-- 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
tooltip:ClearAllPoints()