Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Andrew Tomaka | 5f7cfc7610 | |
Andrew Tomaka | da5111170f | |
Andrew Tomaka | 4cee09a6d4 |
|
@ -155,8 +155,10 @@ function core:OnInitialize()
|
||||||
self.db.global[self.character.realm][self.character.name].lockouts = {}
|
self.db.global[self.character.realm][self.character.name].lockouts = {}
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.db.global[self.character.realm][self.character.name].lfrs == nil and self.character.level == CURRENT_MAX_LEVEL then
|
if self.db.global[self.character.realm][self.character.name] ~= nil then
|
||||||
self.db.global[self.character.realm][self.character.name].lfrs = {}
|
if self.db.global[self.character.realm][self.character.name].lfrs == nil and self.character.level == CURRENT_MAX_LEVEL then
|
||||||
|
self.db.global[self.character.realm][self.character.name].lfrs = {}
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Add LFR stuff to profile if it isn't there already
|
-- Add LFR stuff to profile if it isn't there already
|
||||||
|
@ -254,6 +256,7 @@ function core:OnEnable()
|
||||||
self:RegisterEvent('LFG_LOCK_INFO_RECEIVED')
|
self:RegisterEvent('LFG_LOCK_INFO_RECEIVED')
|
||||||
self:RegisterEvent('UPDATE_INSTANCE_INFO')
|
self:RegisterEvent('UPDATE_INSTANCE_INFO')
|
||||||
|
|
||||||
|
self:RegisterEvent('CURRENCY_DISPLAY_UPDATE')
|
||||||
self:RegisterEvent('CHAT_MSG_CURRENCY')
|
self:RegisterEvent('CHAT_MSG_CURRENCY')
|
||||||
self:RegisterEvent('INSTANCE_ENCOUNTER_ENGAGE_UNIT')
|
self:RegisterEvent('INSTANCE_ENCOUNTER_ENGAGE_UNIT')
|
||||||
end
|
end
|
||||||
|
@ -264,6 +267,7 @@ function core:OnEnable()
|
||||||
-- Reset data if necessary
|
-- Reset data if necessary
|
||||||
core:ResetRaidLockouts()
|
core:ResetRaidLockouts()
|
||||||
core:ResetValorPoints()
|
core:ResetValorPoints()
|
||||||
|
core:ResetLFRLockouts()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -291,6 +295,10 @@ function core:LFG_LOCK_INFO_RECEIVED()
|
||||||
core:UpdateLFRLockouts()
|
core:UpdateLFRLockouts()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function core:CURRENCY_DISPLAY_UPDATE()
|
||||||
|
core:UpdateValorPoints()
|
||||||
|
end
|
||||||
|
|
||||||
function core:CHAT_MSG_CURRENCY()
|
function core:CHAT_MSG_CURRENCY()
|
||||||
RequestRaidInfo()
|
RequestRaidInfo()
|
||||||
RequestLFDPlayerLockInfo()
|
RequestLFDPlayerLockInfo()
|
||||||
|
@ -383,7 +391,6 @@ function core:ResetLFRLockouts()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function core:DrawInstanceOptions()
|
function core:DrawInstanceOptions()
|
||||||
-- Redraw our instance options everytime they are updated.
|
-- Redraw our instance options everytime they are updated.
|
||||||
options.args.instances.args = {
|
options.args.instances.args = {
|
||||||
|
|
Loading…
Reference in New Issue