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.
|