rangecheck: abort early if no action is detected

This commit is contained in:
shagu
2018-01-02 12:51:21 +01:00
parent 47f4c6a7e8
commit 9595b71239
+1
View File
@@ -135,6 +135,7 @@ pfUI:RegisterModule("rangecheck", function ()
end
function pfUI.rangecheck:UnitInSpellRange(unit)
if not pfUI.rangecheck.slot then return nil end
local unit = pfUI.rangecheck:GetRealUnit(unit)
if unitdata[unit] and unitdata[unit] == 1 then