View Single Post
01-25-17, 05:03 PM   #8
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
Probably adding to MouseLookLock would be easiest.

With absolute minimum testing and no options try changing MouseLook.lua.

After the line:
Code:
MouseLookFrame:RegisterEvent("PLAYER_REGEN_ENABLED")
add:
Code:
MouseLookFrame:RegisterEvent("CURRENT_SPELL_CAST_CHANGED")
At the very bottom just before the last end statement insert:
Code:
	if event == "CURRENT_SPELL_CAST_CHANGED" then
		if MouseLookOn then
			if SpellIsTargeting() then
				MouselookStop()
			else
				MouselookStart()
			end
		end
	end
At around line 254 after the line:
Code:
if MouseLook_TempLockout then
and before the line:
Code:
MouselookStart()
insert:
Code:
	if SpellIsTargeting() then return end
These changes (if they work) would need to be done each time the MouseLookLock addon is updated.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 01-25-17 at 05:34 PM.
  Reply With Quote