Originally Posted by
daveyboyuk
tott code that allways worked well for me :- tank assist
if UnitCanAttack("player","target") and UnitIsDead("target") == nil and UnitHealth("target") > UnitHealthMax("player") and UnitName("target") ~= "Raider's Training Dummy" and UnitInRaid("player") == nil then
local InParty = GetNumPartyMembers()
if InParty > 0 then
for i = 1, InParty, 1 do
local member = "party"..tostring(i)
if UnitGroupRolesAssigned(member) == "TANK" and UnitIsDead(member) == nil then
if UnitThreatSituation(member,"target") ~= 3 and UnitInRange(member) then CastSpellByID(57934,member) end
end
end
end
end
focus:- local ToT = "focus"
if GetSpellCooldown(57934) == 0 then
CastSpellByID(57934, ToT) end
from xaos cata profile