From 63f7380de3373832a7aaab052d8aa0b676ad4255 Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Sun, 23 Aug 2026 21:51:42 +0200 Subject: [PATCH] Route auto dismount through central API layer --- mods/auto-dismount.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/mods/auto-dismount.lua b/mods/auto-dismount.lua index 3b732dc..c642d4f 100644 --- a/mods/auto-dismount.lua +++ b/mods/auto-dismount.lua @@ -1,5 +1,6 @@ local _G = ShaguTweaks.GetGlobalEnv() local T = ShaguTweaks.T +local API = ShaguTweaks.API local module = ShaguTweaks:register({ title = T["Auto Dismount"], @@ -99,17 +100,15 @@ module.enable = function(self) if arg1 == errorstring then -- ClassicAPI reads the real mounted/form state directly, avoiding a -- 32-buff tooltip scan in the normal case. - if IsMounted and IsMounted() and Dismount then - Dismount() + if API.IsMounted() then + API.Dismount() return end - if GetShapeshiftFormID and CancelShapeshiftForm then - local formID = GetShapeshiftFormID() - if removableForms[formID] then - CancelShapeshiftForm() - return - end + local formID = API.GetShapeshiftFormID() + if removableForms[formID] then + API.CancelShapeshiftForm() + return end -- Preserve compatibility with custom private-server auras/forms.