Use CURRENCY_DISPLAY_UPDATE to track Valor Point spending.
This commit is contained in:
parent
da5111170f
commit
5f7cfc7610
1 changed files with 5 additions and 1 deletions
|
@ -256,6 +256,7 @@ function core:OnEnable()
|
|||
self:RegisterEvent('LFG_LOCK_INFO_RECEIVED')
|
||||
self:RegisterEvent('UPDATE_INSTANCE_INFO')
|
||||
|
||||
self:RegisterEvent('CURRENCY_DISPLAY_UPDATE')
|
||||
self:RegisterEvent('CHAT_MSG_CURRENCY')
|
||||
self:RegisterEvent('INSTANCE_ENCOUNTER_ENGAGE_UNIT')
|
||||
end
|
||||
|
@ -294,6 +295,10 @@ function core:LFG_LOCK_INFO_RECEIVED()
|
|||
core:UpdateLFRLockouts()
|
||||
end
|
||||
|
||||
function core:CURRENCY_DISPLAY_UPDATE()
|
||||
core:UpdateValorPoints()
|
||||
end
|
||||
|
||||
function core:CHAT_MSG_CURRENCY()
|
||||
RequestRaidInfo()
|
||||
RequestLFDPlayerLockInfo()
|
||||
|
@ -386,7 +391,6 @@ function core:ResetLFRLockouts()
|
|||
end
|
||||
end
|
||||
|
||||
|
||||
function core:DrawInstanceOptions()
|
||||
-- Redraw our instance options everytime they are updated.
|
||||
options.args.instances.args = {
|
||||
|
|
Loading…
Reference in a new issue