Originally Posted by
bu_ba_911
lol i don't remember ever declaring immunity or noaggromobs in my profile or data file... could be wrong tho
You can take those out and just leave the API in there. It was just something that was borrowed from sheurons code. Except for one of my released profiles, it's all person profiles that has it in it lol.
Like:
Code:
if UnitIsDead("Target")
or immunity
or UnitCanAttack("Player","Target") == nil
or (UnitAffectingCombat("Target") and UnitIsPlayer("Target") ) == nil
or tonumber(UnitGUID("Target"):sub(5,5),16) == 4
then return true end
That one should work like a new car 
Or if you want simple:
Code:
if UnitAffectingCombat("Player") == nil or UnitIsDead("Target") or UnitIsDead("Player") then return true end