Quantcast GetSpellBookItemInfo returning bad spell - WoWInterface
Thread Tools Display Modes
12-27-17, 03:24 PM   #1
galvin
A Cobalt Mageweaver
Join Date: Nov 2006
Posts: 236
GetSpellBookItemInfo returning bad spell

On the PTR, this function returns a spell that can't be found by GetSpellInfo

So on my warrior GetSpellBookItemInfo return spellID 161608
Then GetSpellInfo returns nil

Did something change or this a bug?
  Reply With Quote
12-27-17, 04:52 PM   #2
Kanegasi
A Cobalt Mageweaver
 
Kanegasi's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2007
Posts: 249
According to wowhead, that spell doesn't exist in either live or ptr. Probably a bug, since it's ptr.

https://www.wowhead.com/spell=161608
https://ptr.wowhead.com/spell=161608
  Reply With Quote
12-28-17, 02:21 AM   #3
galvin
A Cobalt Mageweaver
Join Date: Nov 2006
Posts: 236
Yeah I checked that. Before making code changes wanted to be sure I wasn't missing something.
  Reply With Quote
12-31-17, 09:27 PM   #4
aallkkaa
A Theradrim Guardian
 
aallkkaa's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2017
Posts: 63
More or less random input:
I had issues withGetSpellBookItemInfo on Live, when called with BOOKTYPE_PET instead of BOOKTYPE_SPELL (or nil). I was getting IDs 9 or 10 digits long, sometimes negatives! GetSpellInfo got them right for me though.
  Reply With Quote
01-02-18, 02:06 PM   #5
Gethe
RealUI Developer
 
Gethe's Avatar
Premium Member
Featured
Join Date: Sep 2008
Posts: 895
On ptr they are changing spell names to async. Register SPELL_NAME_UPDATE to know when the name is available. Here is an example of the change.
__________________
Knowledge = Power; Be OP
  Reply With Quote
01-10-18, 05:09 AM   #6
Torhal
A Pyroguard Emberseer
 
Torhal's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2008
Posts: 1,190
Originally Posted by Gethe View Post
On ptr they are changing spell names to async. Register SPELL_NAME_UPDATE to know when the name is available. Here is an example of the change.
That's been reverted for the time being. Maybe next patch they'll bring it back.
__________________
Whenever someone says "pls" because it's shorter than "please", I say "no" because it's shorter than "yes".

Author of NPCScan and many other AddOns.
  Reply With Quote

WoWInterface » PTR » PTR General Discussion » GetSpellBookItemInfo returning bad spell

Thread Tools
Display Modes

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