This commit is contained in:
aozhiwei 2024-04-03 19:27:58 +08:00
parent 99b9997dd0
commit e587ae1455

View File

@ -350,12 +350,12 @@ void KillMgr::BoradcastRollMsgCb(Human* dead_hum,
int color = element->mutable_union_obj_1()->color();
if (dead_hum == hum) {
color = mt::Param::s().self_bekill_color;
} else if (dead_hum->team_id == hum->team_id) {
color = mt::Param::s().teammate_bekill_color;
} else if (info->killer_id == hum->GetUniId()){
color = mt::Param::s().self_kill_color;
} else if (killer_team_id == hum->team_id) {
color = mt::Param::s().teammate_kill_color;
} else if (dead_hum->team_id == hum->team_id) {
color = mt::Param::s().teammate_bekill_color;
}
if (element->mutable_union_obj_1()->color() != color) {
element->mutable_union_obj_1()->set_color(color);