17 Commits

Author SHA1 Message Date
Brues 421a103f22 Show action button spell tooltips by spell ID
libspell.GetSpellInfo now returns the spell ID at position 9 and caches
it with SafePack and unpack.

The action bar tracks self.spellID for macro-cast spells and shows the
tooltip with GameTooltip:SetSpellByID. Gather the slot, book type, and
spell ID from one GetSpellInfo call instead of a separate GetSpellIndex
lookup.
2026-08-06 23:08:32 -05:00
Brues 88d0f7bf74 Use table.wipe to reset spell caches
Clear existing spell cache tables with table.wipe instead of creating new tables when LEARNED_SPELL_IN_TAB fires. This preserves existing table references (spellmaxrank, spellindex, spellinfo), avoiding stale references and potential bugs while being slightly more efficient. Change applied in libs/libspell.lua.
2026-07-20 21:35:31 -05:00
Brues 0fe0a64121 libspell uses ClassicAPI GetSpellInfo
GetSpellInfo internals now delegate to ClassicAPI's GetSpellInfo for the
DBC metadata read instead of scraping castTime/range out of the tooltip.
Drops the libtipscan dependency from libspell and the regex-based parsing
of SPELL_CAST_TIME_SEC/MIN/SPELL_RANGE. Same 8-value return shape so all
call sites (libtotem, libpredict, libcast, actionbar) continue working.
2026-05-21 02:56:58 -05:00
Meow 8dc9f1cd13 Reapply "fix for libtotem.lua crashing with Invalid spell slot"
This reverts commit 02d3cd8348.
2026-03-14 09:58:26 +01:00
Meow 02d3cd8348 Revert "fix for libtotem.lua crashing with Invalid spell slot"
This reverts commit cc61fbf6d7.
2026-03-14 09:56:20 +01:00
Meow cc61fbf6d7 fix for libtotem.lua crashing with Invalid spell slot 2026-03-14 09:52:16 +01:00
shagu 3ce7cb63a2 libspell: skip spell index of invalid spells 2025-06-01 14:44:12 +02:00
Kyriakos (Dominick) Sidiropoulos 4da109a705 libspell: use proper caching index for ranked spells 2024-06-07 09:03:30 +02:00
Kyriakos (Dominick) Sidiropoulos 2b58818f0e libspell: pass 2nd argument to scanner find to disable exact matching 2024-06-03 09:36:51 +02:00
Kyriakos (Dominick) Sidiropoulos a45c9f3dbe libspell: return spell book id and its book-type 2024-06-01 11:12:01 +02:00
shagu b522d03fc5 libspell: reset caches on skill change 2022-05-27 16:47:33 +02:00
shagu b08432c9f4 libspell: case insensitive max rank detection 2021-09-07 09:57:12 +02:00
shagu 150051a79a libspell: make spell queries case insensitive 2021-09-04 21:05:52 +02:00
shagu 0e2303ae1e libs: skip library loading if already existing 2018-09-30 13:44:03 +02:00
shagu 5790491f6e libspell: replace unpack with static returns
Due to known garbage issues when calling unpack
too often by using the wow lua 5.0 api, removing
unpack and replacing it by static return values
2018-08-09 17:27:36 +02:00
shagu ea056e3834 libspell: fix typo in variable name
thanks @dein0s
2018-08-05 22:10:50 +02:00
Road-block 44ffb10024 libtipscan: add new tooltip scanning library 2018-07-31 21:23:01 +02:00