Minor fixes

This commit is contained in:
2025-01-01 17:14:13 +01:00
parent 36297ca09d
commit 873ce0a30c
3 changed files with 4 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ function shared.Spotter.Init()
local faction = shared.raceMap[race]
if not faction then return string.format("Could not find faction for race %s", tostring(race)) end
local hostile = UnitCanAttack("player", unit) == 1
local hostile = UnitCanAttack("player", unit)
local doNotify = ShouldNotify(unit, name, faction, hostile)
if not doNotify then return string.format("Not notifying for %s", tostring(name)) end