Quantcast CastSpellByID and CastSpellByName Have Different Results - WoWInterface
Thread Tools Display Modes
09-29-18, 04:54 PM   #1
Vrul
A Frostmaul Preserver
 
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 292
CastSpellByID and CastSpellByName Have Different Results

If I set up a secure action button to use the warrior ability Impending Victory as such:
Code:
ActionButton1:SetAttribute('type', 'spell')
ActionButton1:SetAttribute('spell', 202168)
It does nothing, however, if I set it up as:
Code:
ActionButton1:SetAttribute('type', 'spell')
ActionButton1:SetAttribute('spell', "Impending Victory")
It works fine.

I believe both should work the same considering that GetSpellInfo returns the same result using the spellID or "Impending Victory"

Only some abilities are like this, most work the same either way.

The spellID I'm using is coming from GetActionInfo in the secure environment by the way in case that is what is bugged and is returning the wrong spellID.

Edit:
This seems to only be an issue with abilities modified by a talent. For some reason CastSpellByID doesn't seem able to process/recognized spellIDs from talents.

Last edited by Vrul : 09-30-18 at 11:02 AM. Reason: Additional information
  Reply With Quote

WoWInterface » PTR » PTR UI Bugs » CastSpellByID and CastSpellByName Have Different Results

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