LazyScript»LazyScript Tips & Tricks

LazyScript Tips & Tricks

LazyScript Tips & Tricks

Post your tips and tricks for LazyScript here.


Checking buffs or debuffs on yourself and others is a fairly slow operation. To help speed up your forms, make sure that your buff/debuff criteria appear last on each line.

So for example, instead of this:

rupture-ifNotTargetHasDebuff=rupture-ifTarget>30%hp
stuff

Use this:

rupture-ifTarget>30%hp-ifNotTargetHasDebuff=rupture

So if the health check fails, it won't waste time checking the debuff.


Useage of Dotted and Bleeding

If you want to check whether you have a periodic damage debuff, all you need to check for is Dotted. Rend, Serpent Sting, Corruption, etc. are all automatically included in Dotted because it detects the "X damage every Y seconds" text (and similar) in the debuff tooltip.

The Bleeding check is more useful for using items like a Luffa which can remove bleed effects. Stung includes ALL Hunter stings, including ones which are not DoTs like Scorpid Sting, so it's mostly useful to Hunters.

So, try this: stealth-ifNotIs=Dotted


Buff title checks (ifUnitHasBuffTitle) are not portable across locales. If you want your form to be shareable amongst users in different locales, use ifUnitHasBuff with the predefined buff short name.