Thread Tools Display Modes
Prev Previous Post   Next Post Next
08-17-14, 09:20 AM   #1
Jarod24
A Theradrim Guardian
AddOn Author - Click to view addons
Join Date: Jul 2012
Posts: 66
SpellHasRange() and IsSpellInRange() sometimes not working

I have tested SpellHasRange() and IsSpellInRange() on both the beta server (build 18716) and live servers.

Basically; if you use either SpellHasRange() or IsSpellInRange() for the spell "Ice lance" it will return nil on beta, but 0/1 as expected on live servers. I also tested this with frostbolt and frostfire bolt to compare.

I've only tested this on a lvl 100 mage on the Level 100 PvE server.
I do not know if other spells are bugged like this as well.
The spellID for "Ice Lance" is the same on live and beta servers (30455) and in it's tooltip is described as a spell with 40 yard range.


Live servers:
SpellHasRange("Frostbolt") -> 0 or 1
SpellHasRange("Frostfire Bolt") -> 0 or 1
SpellHasRange("Ice Lance") -> 0 or 1

IsSpellInRange ("Frostbolt","target") -> true or false
IsSpellInRange ("Frostfire Bolt","target") -> true or false
IsSpellInRange ("Ice Lance","target") -> true or false


Beta servers (build 18716)
SpellHasRange("Frostbolt") -> 0 or 1
SpellHasRange("Frostfire Bolt") -> 0 or 1
SpellHasRange("Ice Lance") -> nil

IsSpellInRange ("Frostbolt","target") -> true or false
IsSpellInRange ("Frostfire Bolt","target") -> true or false
IsSpellInRange ("Ice Lance","target") -> nil


and yes; the target was an hostile, attackable npc.
__________________
Author of IfThen, Links in Chat
 
 

WoWInterface » Site Forums » Archived Beta Forums » WoD Beta archived threads » SpellHasRange() and IsSpellInRange() sometimes not working


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off