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}} | {{wowapi}} | ||
inRange = IsSpellInRange(spellID, spellType, unit) | |||
inRange = IsSpellInRange(spellID, spellType, unit) | inRange = IsSpellInRange(spellName, unit) | ||
inRange = IsSpellInRange(spellName, unit) | |||
== Parameters == | == Parameters == | ||
| Line 26: | 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 | ||