code.lua里面需要替换一下代码local targetType = "ALLY" if unit == "target" and (UnitReaction(unit, "player") or 0) < 4 then targetType = "ENEMY" end 为 local targetType = UnitCanAttack("player", unit) and "ENEMY" or "ALLY" Archives QR Code