WoW:API IsSpellInRange: Difference between revisions

m
Move page script moved page API IsSpellInRange to WoW:API IsSpellInRange without leaving a redirect
No edit summary
 
m (Move page script moved page API IsSpellInRange to WoW:API IsSpellInRange without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}}


{{Code/Begin}}
inRange = IsSpellInRange(spellID, spellType, unit)
inRange = IsSpellInRange(spellID, spellType, unit)
inRange = IsSpellInRange(spellName, unit)
 
inRange = IsSpellInRange(spellName, unit)
{{Code/End}}


== Parameters ==
== Parameters ==
Line 26: 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