fix player buff stacks count and all unit stack count off by one

This commit is contained in:
Jrc13245
2026-03-06 16:44:36 -05:00
parent 7f6c1dbdbc
commit 4ccd0f81aa
2 changed files with 10 additions and 3 deletions
+2 -1
View File
@@ -1358,7 +1358,8 @@ function API.FindUnitAuraInfo(unitToken, searchSpellId, searchNameLower)
end
if matched then
local stacks = applications and applications[i] or 0
-- auraApplications is 0-indexed (0 = 1 stack); convert to 1-indexed
local stacks = applications and (applications[i] or 0) + 1 or 0
return true, auraId, stacks, i
end
end