WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   The list of crowd control spell IDs? (https://www.wowinterface.com/forums/showthread.php?t=59336)

Basil2 11-11-22 02:44 PM

The list of crowd control spell IDs?
 
I need to detect that the debuff is crowd control debuff (and needs to be dispelled). How can I do this?

An obvious way is to have a full list of that spells in Lua format. May somebody already created it?

I watched LibPlayerSpells addon - it has similar functionality but looks a bit overkill for me. What about a single list?

Basil2 11-22-22 01:08 AM

I finally made this list, using LibPlayerSpells addon. My code was the following:

Code:

local LibPlayerSpells = LibStub('LibPlayerSpells-1.0')
   
local ControlSpells = {}
for spellId in LibPlayerSpells:IterateSpells("CROWD_CTRL", nil, "ROOT TAUNT") do
        table.insert(ControlSpells, spellId)
end


Basil2 11-22-22 02:27 PM

However, the list is very inaccurate.

Xruptor 11-22-22 03:51 PM

It doesn't seem to be updated since May. Perhaps you can fill in the gaps and add the missing spells or update it?

https://github.com/AdiAddons/LibPlayerSpells-1.0

It looks like the addon author said they don't have the bandwidth or time to constantly update it.

Other than that, there really isn't a way to determine crowd control spells without having a database list of them sadly. No filters for things like that.


All times are GMT -6. The time now is 10:25 AM.

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