Had sometime tonight and I found the issue in Pinco's:
function MobileHealthBar.UpdateStatus(mobileId)
local windowName = "MobileHealthBar_"..mobileId
Broken:
if(WindowData.MobileStatus[mobileId] and MobileHealthBar.hasWindow[mobileId] == true and IsMobile(mobileId)) then
Fixed:
if(WindowData.MobileStatus[mobileId] and MobileHealthBar.hasWindow[mobileId] == true) then
The IsMobile is returning false since the mob has been deleted so it will not properly updated.
Another suggestion would be to move the following code to directly after theMobileHealthBar.hasWindow check before doing anything else:
--Set mobile's health status bar
local curHealth = WindowData.MobileStatus[mobileId].CurrentHealth
local maxHealth = WindowData.MobileStatus[mobileId].MaxHealth
StatusBarSetCurrentValue( windowName.."HealthBar", curHealth )
StatusBarSetMaximumValue( windowName.."HealthBar", maxHealth )
Let me know if you have anymore issues.