local threat = UnitThreatSituation(unit)
if UnitAffectingCombat("player")
and threat then
if threat >= 2 then
return unit
end
else
return nil
end
end blackshow0 发表于 2024-12-5 11:35 PM
魔蜂函数封装的有以仇恨判断T的函数function HasThreat(unit)
local threat = Uni ...
这个函数是看自己是不是T。
其实是看自己对目标的仇恨等级的
页:
1
[2]