WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   Dash/Dive Pet Attack Usage... (https://www.wowinterface.com/forums/showthread.php?t=755)

Inokis 05-12-05 02:39 PM

Dash/Dive Pet Attack Usage...
 
I'm finding that the pets don't utilize their dash/dive consistently. This script checks the pet class that would have dash/dive and pet level, then casts the pet action bar slot 7, which is where I use the dash/dive. I only used two pet classes for this example, however all the pet classes that utilize that ability should be listed. The slot can be changed to whatever you use for that pet ability.

Code:

function PetCharge_Macro()
        if UnitCreatureFamily("Pet") == "Cat"  or
        UnitCreatureFamily("Pet") == "Carrion Bird" and UnitLevel("Pet") >= 33 then
                CastPetAction(7);
        end
end

I use this function in a custom MacroLibrary LUA as part of multiple pet attack/assist macros for different spells.

Remelio 05-12-05 03:43 PM

Cool, thanks!!


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

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