For your yoloswag code, you could put the code in pause instead, since you just want the rotation to stop.
Will add more updates as I go through the profile, can I use some of your code?
PHP Code:
-- Don't Attack PvP ---
local debuffList = { 20066, 19503, 90337, 1499, 6770, 2094, 31661, 6358, 1776, 33786, 642, 1022 }
for i=1,#debuffList do
if UnitDebuffID("target",debuffList[i]) or (UnitExists("target") and UnitIsPlayer("target") and UnitIsEnemy("target", "player") == nil) then
return true
end
end
You don't need to return false if the code doesn't return true, it will skip the code if the argument is false.