Quantcast
Survival of the Fittest - WoWInterface
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
12-20-20, 02:50 AM   #1
doofus
A Flamescale Wyrmkin
Join Date: Feb 2018
Posts: 148
Survival of the Fittest

I use the function IsUsableSpell() and GetSpellCooldown() to examine whether/when "Survival of the Fittest" becomes available.

This spell is only available if there is a Tenacity pet out.

If I am freshy logged in and there is no pet, or if I am freshly logged in with a non-tenacity pet, both the above functions return the true state of the spell, ie not available.

Once I summon a tenacity pet however, both the above functions behave as if the spell is available, regardless if the pet has been dismissed, or the pet is now a non-tenacity one.

The WoW client however correctly highlights the spell, so it knows. How does it do it ?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Survival of the Fittest

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