WoW:Detecting an instant cast spell: Difference between revisions

m
(→‎OnMouseDown: cleaned code sample slightly)
Line 231: Line 231:
         local targetName;
         local targetName;
          
          
         if MyMod_Spell and ExistsName("mouseover") then
         if MyMod_Spell and UnitExists("mouseover") then
             targetName = UnitName("mouseover")
             targetName = UnitName("mouseover")
         end
         end
Anonymous user