mirror of
https://forgejo.merr.is/annika/KittenDismount.git
synced 2025-12-15 14:53:31 -05:00
Settings Mostly Work Now?
This commit is contained in:
parent
f4069d38f0
commit
d2691b97d1
4 changed files with 48 additions and 40 deletions
16
main.lua
16
main.lua
|
|
@ -1,19 +1,11 @@
|
|||
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
|
||||
if KittenDismount_disabledSpells[spellID] then
|
||||
Dismount()
|
||||
end
|
||||
end
|
||||
|
|
@ -22,4 +14,10 @@ end
|
|||
|
||||
frame:SetScript("OnEvent", OnEvent)
|
||||
|
||||
local function OnAddonLoaded()
|
||||
KittenDismount_SetDismountArray()
|
||||
end
|
||||
|
||||
EventUtil.ContinueOnAddOnLoaded("KittenDismount", OnAddonLoaded);
|
||||
|
||||
-- Hi Kitten!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue