mirror of
https://forgejo.merr.is/annika/KittenDismount.git
synced 2025-12-18 02:24:31 -05:00
Working on Settings
This commit is contained in:
parent
e85191395b
commit
f4069d38f0
3 changed files with 118 additions and 0 deletions
25
main.lua
Normal file
25
main.lua
Normal 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!
|
||||
Loading…
Add table
Add a link
Reference in a new issue