unrestrict nameplate units, we dont have restrictions with awesomewotlk

This commit is contained in:
NoM0Re
2024-07-01 17:16:03 +02:00
parent 55939acfe0
commit 60460fb912
6 changed files with 9 additions and 12 deletions
+2 -1
View File
@@ -282,7 +282,8 @@ local function CreateTestForCondition(uid, input, allConditionsTemplate, usedSta
local found = 0
local op = %q
local range = %s
for i = 1, 40 do
local max = C_NamePlate and C_NamePlate.GetNamePlates and #C_NamePlate.GetNamePlates or 40
for i = 1, max do
local unit = "nameplate" .. i
if UnitExists(unit) and UnitCanAttack("player", unit) and WeakAuras.CheckRange(unit, range, op) then
found = found + 1