This commit is contained in:
aozhiwei 2024-04-03 19:26:06 +08:00
parent d9f3fc164d
commit 99b9997dd0

View File

@ -348,12 +348,12 @@ void KillMgr::BoradcastRollMsgCb(Human* dead_hum,
auto element = pb_msg->mutable_elements(i);
if (element->element_type() == kTextElement) {
int color = element->mutable_union_obj_1()->color();
if (info->killer_id == hum->GetUniId()){
if (dead_hum == hum) {
color = mt::Param::s().self_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 == hum) {
color = mt::Param::s().self_bekill_color;
} else if (dead_hum->team_id == hum->team_id) {
color = mt::Param::s().teammate_bekill_color;
}