There's actually no need for that much, to be honest, and certainly no need to add a conditional to change pets. If you aren't too bothered about the animations, you can skip the 1st line entirely, all it does is reduce the time spent watching pointless animations by passing instead of activating ability(#1). All you need to do is make sure your Shield pet has lower hp than your slot #3 pet and this (and every other) Shattered Defenses > Lightning Shield strat is unbeatable.
Thank you. This is my favorite strategy and I wanted a functioning script eventho I'm very new to attemtping them. I thought if I at least posted something after I confirmed it worked, some kind soul would post the proper way. One question I do have though is, how does Inflation get used in the example you provided?
Inflation is ability(#1). It's just easier than writing out the entire spell name and code. If you leave the top line out, this script will activate ability(#1) on your 1st pet, activate Lightning Shield on your second, then activate your 2nd pet's ability(#1) until the Bot dies. The 1st line included simply stops the animation of your 2nd pet's ability(#1).
Thx. Btw, your strategies are some of my favorites on wow-petguides. I do see value tho in using the ability name for people like me to learn. I think it will auto-complete them as well so no need to type them out. Or, am I wrong again?
The addon will auto-complete in-game, yes. I tend to use ability(#1) as the last (or almost last) line on most scripts as whichever ability your pets have in that slot is usually used the most, so putting conditionals on the other abilities usually keeps the script shorter. I've learned a lot from studying Prudentius' scripts. Pru has a penchant for keeping them short and neat, which I really like and try to emulate.
Thanks for the praise. I really should go back over my strats and adjust them to suit my current roster and the BfA nerf on leveling. If only I could quit my job and spend 10 hours a day on WoW... oh... wait, I have..! Hahahahahahah!!!