BigBrother: Fix CLEU timestamp not comparable with GetTime()'s.

This commit is contained in:
Casper V. Kristensen 2020-10-06 18:11:47 +02:00
parent 480eac99da
commit 91c4428da9
Signed by: caspervk
GPG key ID: 289CA03790535054

View file

@ -64,13 +64,13 @@ function events:ENCOUNTER_START(encounterID, encounterName, difficultyID, groupS
end
function events:COMBAT_LOG_EVENT_UNFILTERED(self, ...)
local timestamp, event, _, _, name, _, _, _, _, _, _, _, spellName = CombatLogGetCurrentEventInfo()
local _, event, _, _, name, _, _, _, _, _, _, _, spellName = CombatLogGetCurrentEventInfo()
if event ~= "SPELL_CAST_SUCCESS" then
return
end
if weaponEnchantments[spellName] ~= nil then
local weaponEnchantmentSpellId, weaponEnchantmentDuration = unpack(weaponEnchantments[spellName])
unitWeaponBuffs[name] = {weaponEnchantmentSpellId, timestamp + weaponEnchantmentDuration}
unitWeaponBuffs[name] = {weaponEnchantmentSpellId, GetTime() + weaponEnchantmentDuration}
end
end