From 91c4428da9e3c03e3c2f7632895ebf9c887035c2 Mon Sep 17 00:00:00 2001 From: "Casper V. Kristensen" Date: Tue, 6 Oct 2020 18:11:47 +0200 Subject: [PATCH] BigBrother: Fix CLEU timestamp not comparable with GetTime()'s. --- BigBrother/BigBrother.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BigBrother/BigBrother.lua b/BigBrother/BigBrother.lua index e55f089..a5e0836 100644 --- a/BigBrother/BigBrother.lua +++ b/BigBrother/BigBrother.lua @@ -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