diff --git a/server/gameserver/human.cc b/server/gameserver/human.cc index 106b157d..c3ef1e3b 100644 --- a/server/gameserver/human.cc +++ b/server/gameserver/human.cc @@ -412,6 +412,7 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string killer_name, in killer->GetUniId(), only_self); } + BroadcastBattleHint(); } else if (killer->IsHero()) { if (killer->AsHero()->master.Get() && killer->AsHero()->master.Get()->IsPlayer()) { diff --git a/server/gameserver/human.h b/server/gameserver/human.h index 8a24e857..6c4a20c6 100644 --- a/server/gameserver/human.h +++ b/server/gameserver/human.h @@ -349,6 +349,7 @@ private: virtual void DoSkillPreProc(int skill_id, int target_id) override; virtual void DoSkillPostProc(bool used, int skill_id, int target_id) override; void FillMFSettlement(cs::SMGameOver* msg, cs::MFSettlement* settlement); + void BroadcastBattleHint(); protected: long long hide_frameno_ = 0; diff --git a/server/gameserver/pbutils.cc b/server/gameserver/pbutils.cc index afd85fb7..181a4e5c 100644 --- a/server/gameserver/pbutils.cc +++ b/server/gameserver/pbutils.cc @@ -2183,6 +2183,16 @@ void Human::SendViewerUiMemberUpdate(std::vector member_ids) } } +void Human::BroadcastBattleHint() +{ + if (room->GetFrameNo() - last_battle_hint_frameno_ >= mt::Param::s().battle_hint_interval) { + last_battle_hint_frameno_ = room->GetFrameNo(); + if (last_battle_hint_uniid_ > 0) { + + } + } +} + void GGListener::SendError(int sockhandle, unsigned int seqid, int error_code, const std::string& error_msg, const char* file, int lineno, int error_param)