Originally Posted by
kclux
How can I make a rotation basically start from the top again and ignore everything that would normally follow if a certain condition is met. Like for example when the player got a certain buff, say bloodlust for example. Thanks for advise

Depending on what you're trying to do, adding something like:
Code:
if not UnitBuffID("player", 12345)
could do the trick. You'd have to add it to the abilities you want to skip; they won't be executed if PQR detects the designated aura on the player (or whatever unit you're checking).
For instance, one of my Chains of Ice abilities uses the following code:
Code:
if IsSpellInRange(GetSpellInfo(45524), PQR_CustomTarget) == 1
and IsSpellInRange(GetSpellInfo(47528), PQR_CustomTarget) == 0
and not UnitDebuffID("target", 68766)
and not UnitDebuffID("target", 45524)
and not UnitBuffID("target", 1044) then
return true
end
In order, this checks that:
1. The target is in range of Chains of Ice
2. The target is not in range of Mind Freeze (a melee ability)
3. The target is not currently standing in my Desecration (a snare, which makes Chains of Ice redundant)
4. The target does not currently have the Chains of Ice snare (otherwise, it would spam the ability and waste Frost/Death runes)
5. The target does not currently have Hand of Freedom.
I also use Mentally and Bubba's PQ_ValidUnit function to check for a variety of immunities (such as Divine Shield, Deterrence and Cloak of Shadows) as well as Line-of-Sight. It was removed from this example for reasons of simplification.
If any of these conditions are not met, PQR will skip the ability and continue down the priority list. There are probably more efficient ways to do this, but hopefully it helped