diff --git a/server/gameserver/ingamevoice.cc b/server/gameserver/ingamevoice.cc index f7d82859..7d7d1623 100644 --- a/server/gameserver/ingamevoice.cc +++ b/server/gameserver/ingamevoice.cc @@ -94,6 +94,32 @@ void InGameVoice::OnHumanBeKill(int killer_id, Human* deader) void InGameVoice::Notify(Human* killer, Human* deader, const mt::InGameVoice* meta) { + { + switch (meta->play_scene()) { + case 1: + { + if (!room_->IsMobaModeRoom()) { + return; + } + } + break; + case 2: + { + if (room_->IsMobaModeRoom()) { + return; + } + } + break; + case 3: + { + } + break; + default: + { + } + break; + } + } auto p = std::make_shared(); { p->voice_id = meta->sound_id(); diff --git a/server/tools/protobuild/mt.proto b/server/tools/protobuild/mt.proto index 209852d7..2c179d59 100755 --- a/server/tools/protobuild/mt.proto +++ b/server/tools/protobuild/mt.proto @@ -61,7 +61,6 @@ message MobaRoom message InGameVoice { optional int32 event_type = 1; - optional int32 moba_is_play = 2; optional int32 sound_id = 3; optional string cond = 4; optional string notify_object = 5;