mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-23 20:40:50 +00:00
unitframes: reset aggro state
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ function pfUI.api.UnitHasAggro(unit)
|
|||||||
return aggrodata[unit].state
|
return aggrodata[unit].state
|
||||||
end
|
end
|
||||||
|
|
||||||
aggrodata[unit] = aggrodata[unit] or { check = GetTime(), state = 0}
|
aggrodata[unit] = { check = GetTime(), state = 0}
|
||||||
|
|
||||||
if UnitExists(unit) and UnitIsFriend(unit, "player") then
|
if UnitExists(unit) and UnitIsFriend(unit, "player") then
|
||||||
for u in pairs(pfValidUnits) do
|
for u in pairs(pfValidUnits) do
|
||||||
|
|||||||
Reference in New Issue
Block a user