In "Vanilla" and early versions of WoW Classic , the game server did not send absolute health values (e.g., "1,200/1,200") to the client for enemy NPCs; it only sent percentages (0–100%). functions as a persistent database and calculation engine to solve this:
: Modern unit frame suites like ElvUI and Shadowed Unit Frames often reference MobHealth.lua or similar libraries to display these estimated values on the target frame. Historical Significance and Evolution MobHealth.lua
World of Warcraft Vanilla 1.12.1 AddOn MobHealth ... - GitHub In "Vanilla" and early versions of WoW Classic
[1.12. 1] Displays current and maximum health numbers for targeted mobs. Read this in other languages: English, Português. - GitHub [1
: Once a mob's health is calculated, MobHealth.lua saves this data to the player's SavedVariables folder . This ensures that the next time the player targets that specific NPC type at that level, the health is immediately visible without needing to deal damage again.
: The script tracks the damage dealt to a target and compares it to the percentage drop in the target’s health bar. If a player deals 100 damage and the mob's health drops by 10%, the script calculates the total health as 1,000 HP.