WoWInterface - View Single Post - A more efficient 'enemies in range'?
View Single Post
10-29-20, 11:11 AM   #5
A Murloc Raider
Join Date: Sep 2020
Posts: 5
Perfect Vrul! I wasn't aware of UnitCanAttack, between that and removing the exists check I should be able to drop some time off the function.

DahkCeles - nameplates is a fixed array, it doesn't compress or expand as nameplates are added or removed. If nameplate1 points to a mob, and that mob dies, nameplate1 becomes a null even though nameplate2 may still point to a mob.
  Reply With Quote