IsVisible (no longer?) exists. Only UnitIsVisible
(upgraded code block) |
(IsVisible (no longer?) exists. Only UnitIsVisible) |
||
| Line 23: | Line 23: | ||
local inRange = 0 | local inRange = 0 | ||
local unit = "party1" | local unit = "party1" | ||
if UnitExists(unit) and | if UnitExists(unit) and UnitIsVisible(unit) and UnitIsFriend(unit) then | ||
inRange = IsSpellInRange("Heal",unit) | inRange = IsSpellInRange("Heal",unit) | ||
end | end | ||