Arena Enemy Player Deaths improvements

This commit is contained in:
Tercio Jose
2022-04-08 14:33:42 -03:00
parent a3e38a1e6a
commit 241200d6c0
5 changed files with 97 additions and 43 deletions
+13 -1
View File
@@ -941,7 +941,19 @@
end
end
end
--attempt to get the arena unitId for an actor
function Details:GuessArenaEnemyUnitId(unitName)
for i = 1, 5 do
local unitId = "arena" .. i
local enemyName = _G.GetUnitName(unitId, true)
if (enemyName == unitName) then
_detalhes.arena_enemies[enemyName] = unitId
return unitId
end
end
end
local string_arena_enemyteam_damage = [[
local combat = Details:GetCombat ("current")
local total = 0