unitframes: reset aggro state

This commit is contained in:
shagu
2018-01-20 20:10:39 +01:00
parent 128df2f09d
commit d4f1d585b6
+1 -1
View File
@@ -30,7 +30,7 @@ function pfUI.api.UnitHasAggro(unit)
return aggrodata[unit].state
end
aggrodata[unit] = aggrodata[unit] or { check = GetTime(), state = 0}
aggrodata[unit] = { check = GetTime(), state = 0}
if UnitExists(unit) and UnitIsFriend(unit, "player") then
for u in pairs(pfValidUnits) do