ascott18 / TellMeWhen

TellMeWhen is a combat tracking AddOn for World of Warcraft Retail and Classic
https://wow.curseforge.com/projects/tellmewhen
GNU General Public License v3.0
86 stars 11 forks source link

LUA code in conditions does not work on newer versions #2233

Closed Jokich7 closed 1 month ago

Jokich7 commented 1 month ago

WoW Version

Retail

TellMeWhen Version

11.0.2

Describe the bug

LUA code in conditions on version does not work TMW-11.0.9 while in the old version TMW-11.0.5 everything works as it should.

local now = GetTime() local math1 = 0 local math2 = 0 local startTime, duration, enabled = GetSpellCooldown(61304) if startTime > 0 then math1 = now - startTime end if duration > 0 then math2 = duration - math1 end

if math2 <= 0.3 then return true end

In addition, some groups are disabled when the character enters the dungeon, on the old version all works fine.

Translated with www.DeepL.com/Translator (free version)

Export Strings

N/A
Alwies commented 1 month ago

That wouldn't work correctly on any TMW version. Blizzard removed GetSpellCooldown and replaced it with C_Spell.GetSpellCooldown , see: https://warcraft.wiki.gg/wiki/API_C_Spell.GetSpellCooldown