From 1c83b282eff72e0f2cb1d8d461d17cd696a51b62 Mon Sep 17 00:00:00 2001 From: GreenComfyTea Date: Sun, 20 Aug 2023 13:29:33 +0300 Subject: [PATCH] Update Otomo Entity when Swapping Otomos --- reframework/autorun/MHR_Overlay/Damage_Meter/non_players.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reframework/autorun/MHR_Overlay/Damage_Meter/non_players.lua b/reframework/autorun/MHR_Overlay/Damage_Meter/non_players.lua index af133a4..ca510d6 100644 --- a/reframework/autorun/MHR_Overlay/Damage_Meter/non_players.lua +++ b/reframework/autorun/MHR_Overlay/Damage_Meter/non_players.lua @@ -232,7 +232,7 @@ function this.update_my_otomos() local myself_id = players.myself.id; local otomo = this.otomo_list[myself_id]; - if otomo == nil then + if otomo == nil or name ~= otomo.name then otomo = this.new(0, name, level, players.types.my_otomo); this.otomo_list[myself_id] = otomo; end @@ -255,7 +255,7 @@ function this.update_my_otomos() -- the secondary otomo is actually the 4th one! local otomo = this.otomo_list[this.my_second_otomo_id]; - if otomo == nil then + if otomo == nil or name ~= otomo.name then otomo = this.new(this.my_second_otomo_id, name, level, players.types.my_otomo); this.otomo_list[this.my_second_otomo_id] = otomo; end