BigBrother: Fix CLEU timestamp not comparable with GetTime()'s.
This commit is contained in:
parent
480eac99da
commit
91c4428da9
|
@ -64,13 +64,13 @@ function events:ENCOUNTER_START(encounterID, encounterName, difficultyID, groupS
|
||||||
end
|
end
|
||||||
|
|
||||||
function events:COMBAT_LOG_EVENT_UNFILTERED(self, ...)
|
function events:COMBAT_LOG_EVENT_UNFILTERED(self, ...)
|
||||||
local timestamp, event, _, _, name, _, _, _, _, _, _, _, spellName = CombatLogGetCurrentEventInfo()
|
local _, event, _, _, name, _, _, _, _, _, _, _, spellName = CombatLogGetCurrentEventInfo()
|
||||||
if event ~= "SPELL_CAST_SUCCESS" then
|
if event ~= "SPELL_CAST_SUCCESS" then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
if weaponEnchantments[spellName] ~= nil then
|
if weaponEnchantments[spellName] ~= nil then
|
||||||
local weaponEnchantmentSpellId, weaponEnchantmentDuration = unpack(weaponEnchantments[spellName])
|
local weaponEnchantmentSpellId, weaponEnchantmentDuration = unpack(weaponEnchantments[spellName])
|
||||||
unitWeaponBuffs[name] = {weaponEnchantmentSpellId, timestamp + weaponEnchantmentDuration}
|
unitWeaponBuffs[name] = {weaponEnchantmentSpellId, GetTime() + weaponEnchantmentDuration}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue