blackshow0 发表于 2024-12-5 23:35:19

魔蜂函数封装的有以仇恨判断T的函数function HasThreat(unit)
        local threat = UnitThreatSituation(unit)
        if UnitAffectingCombat("player")
                        and threat then
                if threat >= 2 then
                        return unit
                end
        else
                return nil
        end
end

lbabey 发表于 2024-12-6 18:47:34

blackshow0 发表于 2024-12-5 11:35 PM
魔蜂函数封装的有以仇恨判断T的函数function HasThreat(unit)
        local threat = Uni ...

这个函数是看自己是不是T。
其实是看自己对目标的仇恨等级的
页: 1 [2]
查看完整版本: 想遍历小队天赋 来确定 是不是T