Total Damage fixed

This commit is contained in:
GreenComfyTea
2022-01-26 20:28:54 +02:00
parent 62bb5a3805
commit 491bd17911

View File

@@ -615,6 +615,7 @@ end
-----------------------DAMAGE METER UI----------------------- -----------------------DAMAGE METER UI-----------------------
local players = {}; local players = {};
local total = {};
local is_quest_online = false; local is_quest_online = false;
local last_displayed_players = {}; local last_displayed_players = {};
local myself_player_id = 0; local myself_player_id = 0;
@@ -737,6 +738,7 @@ function init_player(player_id, player_name, player_hunter_rank)
return player; return player;
end end
total = init_player(0, "Total", 0);
function merge_damage(first, second) function merge_damage(first, second)
first.total_damage = first.total_damage + second.total_damage; first.total_damage = first.total_damage + second.total_damage;
@@ -745,7 +747,6 @@ function merge_damage(first, second)
first.ailment_damage = first.ailment_damage + second.ailment_damage; first.ailment_damage = first.ailment_damage + second.ailment_damage;
end end
local total = init_player(0, "Total", 0);
function get_player(player_id) function get_player(player_id)
if players[player_id] == nil then if players[player_id] == nil then