diff --git a/core/parser.lua b/core/parser.lua index b2323593..f7b1781a 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -2241,7 +2241,11 @@ if (not unitId) then unitId = Details:GuessArenaEnemyUnitId(alvo_name) end - this_event [5] = _UnitHealth(unitId) + if (unitId) then + this_event [5] = _UnitHealth(unitId) + else + this_event [5] = 0 + end else this_event [5] = _UnitHealth(alvo_name) end