Quantcast WoWInterface - View Single Post - CastSpellByID and CastSpellByName Have Different Results
View Single Post
09-29-18, 04:54 PM   #1
A Rage Talon Dragon Guard
Vrul's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2007
Posts: 342
CastSpellByID and CastSpellByName Have Different Results

If I set up a secure action button to use the warrior ability Impending Victory as such:
ActionButton1:SetAttribute('type', 'spell')
ActionButton1:SetAttribute('spell', 202168)
It does nothing, however, if I set it up as:
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.

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