I am looking for a piece of code that makes me cast Pet Freeze (frost mage) on mouse location, by holding a modifier key.
As far as I can see, the Nova frost profile does this:
Code:
local PQ_Freeze = PQ_Freeze
local Nova_Spell = Nova_Spell
if UnitExists("pet") then
if PQR_SpellAvailable(PQ_Freeze)
and IsLeftControlKeyDown()
and not GetCurrentKeyBoardFocus() then
SpellCancelQueuedSpell()
CastSpellByName(GetSpellInfo(PQ_Freeze),nil)
if SpellIsTargeting() then SpellCancelQueuedSpell() CameraOrSelectOrMoveStart() CameraOrSelectOrMoveStop() end
return true
end
end
How do I make this work with abother profile?