2 Commits
Author SHA1 Message Date
Brues 8ea5c81789 bump CAPI min to 1.12.4 2026-08-24 23:40:01 -05:00
Brues 39a46563a1 tracking: use native ClassicAPI tracking API
Replace the hardcoded knownTrackingSpells class table and the
icon-substring spellbook scan with ClassicAPI's native tracking
functions:

- RefreshSpells now enumerates GetNumTrackingTypes() / GetTrackingInfo(),
  which the DLL derives from the spellbook by tracking-aura effect. This
  drops the per-class spell/icon table and picks up server-custom
  trackers (e.g. Turtle's Find Trees) automatically.
- Selecting a tracker in the menu uses SetTracking(index) instead of
  CastSpell(slot, BOOKTYPE_SPELL).
- Keep the Druid Cat Form gate on Track Humanoids (5225) and the
  existing invalidSpells filter. Falls back to no entries if the tracking
  API is absent.

Active icon (GetTrackingTexture), cancel (CancelTrackingBuff), and the
hover tooltip (GameTooltip:SetTrackingSpell) were already native and are
unchanged.
2026-08-24 23:35:49 -05:00
+8 -7
View File
@@ -86,13 +86,14 @@ do
end
end
pfUI_playerDB = pfUI_playerDB or {}
pfUI_config = pfUI_config or {}
pfUI_init = pfUI_init or {}
pfUI_profiles = pfUI_profiles or {}
pfUI_addon_profiles = pfUI_addon_profiles or {}
pfUI_cache = pfUI_cache or {}
pfUI_throttle = pfUI_throttle or {}
-- initialize saved variables
pfUI_playerDB = {}
pfUI_config = {}
pfUI_init = {}
pfUI_profiles = {}
pfUI_addon_profiles = {}
pfUI_cache = {}
pfUI_throttle = {}
-- localization
pfUI_locale = {}