Working on Settings

This commit is contained in:
Annika Merris 2024-09-26 12:41:38 -04:00
parent e85191395b
commit f4069d38f0
3 changed files with 118 additions and 0 deletions

25
main.lua Normal file
View file

@ -0,0 +1,25 @@
local surgeForward = 372608;
local skywardAscent = 372610;
local whirlingSurge = 361584;
local aerielHalt = 403092;
local secondWind = 425782;
local frame = CreateFrame("Frame", "DismountAddonFrame");
frame:RegisterEvent("UNIT_SPELLCAST_SENT");
local function OnEvent(self, event, ...)
if event == "UNIT_SPELLCAST_SENT" then
print(KittenDismount_SavedVars)
print(KittenDismount_SavedVars.surgeForward)
local unit, target, castGUID, spellID = ...;
if not IsFlying() then
if spellID == surgeForward or spellID == whirlingSurge or spellID == aerielHalt then
Dismount()
end
end
end
end
frame:SetScript("OnEvent", OnEvent)
-- Hi Kitten!