View Single Post
10-29-20, 07:17 AM   #2
DahkCeles
A Cliff Giant
 
DahkCeles's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2020
Posts: 73
I don't know how nameplate numbering works, but if it always starts at 1 then maybe you could add this optimization:

Lua Code:
  1. for i = 1, 40 do
  2.     id = "nameplate" .. i
  3.     if UnitExists(id) then
  4.         -- etc...
  5.     else
  6.         break;
  7.     end
  8. end
  Reply With Quote