suggestion for future version of PQR:
Add to the target list (target, focus, pet, player, mouseover, click) a global variable named like PQR_Target. This is an example little code we can achieve with that variable:
Code:
if UnitExists("mouseover") and UnitDebuffID("mouseover",589) == nil then PQR_Target = "mouseover"
elseif UnitExists("focus") and UnitDebuffID("focus",589) == nil then PQR_Target = "focus"
else PQR_Target = "target" end
if UnitDebuffID(PQR_Target,589) == nil then
return true
end
This script Cast spell if mouseover/focus/target miss shadow word pain debuff.
This also can make possible to free locked target on healer scripts.