

That’s going to give you a sorted list of who in your party or raid is most in need of healing.

Local harmLevel = math.ceil((UnitHealth(unitID)/UnitMaxHealth(unitID) * 10) Local unitName, unitRealm = UnitName("nameplate".nameplateNum) If UnitPlayerOrPetInRaid("nameplate".nameplateNum) then PatientList = "PARTY".iįor nameplateNum, _ in ipairs(C_NamePlates.GetNamePlates(true)) do Local unitName, unitRealm = UnitName("PARTY".i) Local unitName, unitRealm = UnitName("RAID".i) The guts of this would look something like this: function GetPatientList() It would require you to turn on friendly nameplates in instances and raids, but as a healer I suspect you have those on already anyway. It is possible to scan nameplates and determine unit names, then from unit names determine whether or not that particular unit is in your party/raid and is in trouble vis a vis healing.
