WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   PTR UI Bugs (https://www.wowinterface.com/forums/forumdisplay.php?f=176)
-   -   CastSpellByID and CastSpellByName Have Different Results (https://www.wowinterface.com/forums/showthread.php?t=56727)

Vrul 09-29-18 04:54 PM

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.


All times are GMT -6. The time now is 10:17 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI