WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Working out if a talent is known (https://www.wowinterface.com/forums/showthread.php?t=59717)

GnomeIndustries 11-24-23 03:48 AM

Working out if a talent is known
 
I'm trying to write a module to my addon for my Death Knight that shows a warning when the Icy Talons buff is about to drop off or is missing. Which I've done... BUT

If I don't have the talent then I'll never have the buff and thus the warning always shows.

Is there an easy way to detect whether the talent is currently known or not?

Xrystal 11-24-23 01:53 PM

This might help
https://warcraft.wiki.gg/wiki/API_GetTalentInfo

But you might have to build up a list of current talents to make it easier to find a talent if the direct route doesn't work.

Mimma 11-25-23 07:59 AM

Quote:

Originally Posted by GnomeIndustries (Post 342943)
I'm trying to write a module to my addon for my Death Knight that shows a warning when the Icy Talons buff is about to drop off or is missing. Which I've done... BUT

If I don't have the talent then I'll never have the buff and thus the warning always shows.

Is there an easy way to detect whether the talent is currently known or not?


You could make the simple approach and only activate the message if Icy Talons had been actived earlier. It's dirty but simple :-)

Only problem is it won't work until you have actually cast the spell - and it won't work after you respec.


All times are GMT -6. The time now is 05:39 AM.

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