WoW:API IsSpellInRange: Difference between revisions

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 IsVisible(unit) and UnitIsFriend(unit) then
  if UnitExists(unit) and UnitIsVisible(unit) and UnitIsFriend(unit) then
     inRange = IsSpellInRange("Heal",unit)
     inRange = IsSpellInRange("Heal",unit)
  end
  end
Anonymous user