View Single Post
09-14-22, 07:42 AM   #6
Xrystal
nUI Maintainer
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,937
Okay, jumped on my druid to test things out - Noticed there are no Claw or Ravage abilities in Retail, so changed to Rake for Stealth and Mangle for non Stealth alternatives.

I took out the /StartAttack line as it skewed my tests with extra messages.

Alternative Macro
Lua Code:
  1. #showtooltip
  2. /cast [stealth] Rake; [form:1] Mangle; [form:2] Shred; [@mouseover,help,nodead][] Regrowth

Spec: Feral
Cat in Stealth: Rake Icon - Nothing to Attack Message
Cat in Non Stealth : Shred Icon - Nothing to Attack Message
Bear : Mangle Icon - Nothing to Attack Message
Travel and Caster : Changes to Regrowth Icon and casts spell

Spec: Guardian
Cat in Stealth: No Icon - Doest Nothing
Cat in Non Stealth : Shred Icon - Nothing to Attack Message
Bear : Mangle Icon - Nothing to Attack Message
Travel and Caster : Regrowth Icon - Casts Regrowth in Caster Form

Spec: Restoration
Cat in Stealth: No Icon - Does nothing
Cat in Non Stealth : Shred Icon - Nothing to Attack Message
Bear : Mangle Icon - Nothing to Attack Message
Travel and Caster : Regrowth Icon - Casts Regrowth in Caster Form
Moonkin : Regrowth Icon - Casts Regrowth in Moonkin Form

Results:
If the ability isn't available it does nothing
If the ability is available it will try to use it

Suggestion:
Maybe put the Regrowth cast on a separate line for a fallback if no skills are available
And add additional checks for harm/exists etc so that it will fall through if those tests fail
And as Kanegasi points out, version matters, so adjust accordingly
__________________


Characters:
Gwynedda - 70 - Demon Warlock
Galaviel - 65 - Resto Druid
Gamaliel - 61 - Disc Priest
Gwynytha - 60 - Survival Hunter
Lienae - 60 - Resto Shaman
Plus several others below level 60

Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
  Reply With Quote