Thread Tools Display Modes
09-22-22, 04:51 PM   #1
doofus
A Chromatic Dragonspawn
Join Date: Feb 2018
Posts: 158
Spirit Mend (Exotic Ability)

IsUsableSpell("Spirit Mend");

is useless

as is

playerSpellST, playerSpellDuration, playerSpellEnabled = GetSpellCooldown("Spirit Mend");

both return "true" (or the equivalent), with or without a pet active, let alone an exotic pet.

The UI knows if the spell is active, of course, but how to get to it?

We can look at the actionbar, which is what I do, but there must be a better way?

Edit:

same for Mend Pet...

Edit:
I have now found a solution

local _,_,_,_,_,_,lSpiritMendID = GetSpellInfo("Spirit Mend");
local lSpiritMendKnown = lSpiritMendID and IsSpellKnown(lSpiritMendID,true);
playerSpellST, playerSpellDuration, playerSpellEnabled = GetSpellCooldown("Spirit Mend");
local playerSpellSpiritMendCD = lIsPetAlive and lSpiritMendKnown and playerSpellST and ( playerSpellST + playerSpellDuration - timeNow ) or 9999;

Last edited by doofus : 09-23-22 at 06:03 AM.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Spirit Mend (Exotic Ability)


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