promotional bannermobile promotional banner

[Discarded] LibTotemInfo

[Discarded] A compatible implementation of GetTotemInfo() API for WoW Classic 1.13.3 | [已废弃]为魔兽世界怀旧服1.13.3编写的GetTotemInfo()接口兼容层,可修复萨满图腾计时器不起作用的问题

File Details

!LibTotemInfo-v1.0.4.zip

  • R
  • Dec 25, 2019
  • 11.11 KB
  • 12.2K
  • 1.13.3
  • Classic

File Name

!LibTotemInfo-v1.0.4.zip

Supported Versions

  • 1.13.3

[v1.0.3] Fixed the issue that the high rank totem could not display the timer.

I made a mistake in v1.0.2 that I added Totem's Rank to the spell name returned by the GetTotemInfo API, which caused the problem.

Some addons (like TotemTimer) use spell names for matching. Attaching rank to the spell name will cause the match to fail. Additional rank in the spell name have been removed.

[v1.0.4] Add rank to spell name likes Blizzard's old interface

  • Add rank to spell name likes Blizzard's old interface (xxx Totem I, xxx Totem II, ...)
  • GetTotemInfo() adds two return values useful for future addons.

    -- Added return value by the lib (not in Blizzard old interface):

    -- spellid - int, the totem's spell id.

    -- rank - int (1 to 8) or nil, the rank of the totem spell. nil indicates that there is no rank for this totem.

    haveTotem, totemName, startTime, duration, icon, spellid, rank = GetTotemInfo(1 through 4)