mirror of
https://github.com/Bluewhale1337/HealBotBlue.git
synced 2026-10-27 06:00:54 +00:00
refactor: replace standard UnitClass calls with HealBot_UnitClass helper function
This commit is contained in:
+1
-1
@@ -149,7 +149,7 @@ function HealBot_Model:UpdateUnitIdentity(unit)
|
||||
local oldName = self.units[unit].name
|
||||
local oldEnglishClass = self.units[unit].englishClass
|
||||
local name = UnitName(unit)
|
||||
local _, englishClass = UnitClass(unit)
|
||||
local englishClass = HealBot_UnitClass(unit)
|
||||
|
||||
if oldName ~= name or oldEnglishClass ~= englishClass then
|
||||
self.units[unit].name = name
|
||||
|
||||
Reference in New Issue
Block a user