Right, of course, UnitIsPLayer expects a UNIT how silly of me.....

I hate the wow api
This commit is contained in:
2025-01-12 23:25:31 +01:00
parent ca333a93e3
commit 18fd4bb9d2
4 changed files with 21 additions and 19 deletions

View File

@@ -212,6 +212,7 @@ function shared.StinkyTracker.Init()
return
end
local name = UnitName(unit)
if not UnitIsPlayer(unit) then
if Heimdall_Data.config.stinkyTracker.debug then
print(string.format("[%s] Target %s is not a player, nothing to do", ModuleName, name))
@@ -219,7 +220,6 @@ function shared.StinkyTracker.Init()
return
end
local name = UnitName(unit)
local enemy = UnitCanAttack("player", unit)
if enemy then
if Heimdall_Data.config.stinkyTracker.debug then