Fix PLAYER_REGEN using event

This commit is contained in:
Robin 2021-02-04 01:05:57 +01:00
parent ac37d0f1b7
commit 796ca249e8
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
local lib = LibStub:NewLibrary("LibCombatLog", 19)
local lib = LibStub:NewLibrary("LibCombatLog", 20)
if not lib then return end
if not lib['cb'] then
lib['cb'] = LibStub("CallbackHandler-1.0"):New(lib)
@ -44,7 +44,7 @@ local function OnEvent2(self, event)
lib['cb']:Fire(data[3], data, prefix, suffix)
lib['cb']:Fire(suffix, data, prefix, suffix)
elseif(event == 'PLAYER_REGEN_DISABLED' or event == 'PLAYER_REGEN_ENABLED') then
lib['cb']:Fire(event)
lib['cb']:Fire('PLAYER_REGEN', event)
else
print('unknown',event)
end