This commit is contained in:
aozhiwei 2024-09-06 14:22:26 +08:00
parent e0373b472c
commit 943e2b989e
3 changed files with 12 additions and 0 deletions

View File

@ -412,6 +412,7 @@ void Human::DecHP(float dec_hp, int killer_id, const std::string killer_name, in
killer->GetUniId(), killer->GetUniId(),
only_self); only_self);
} }
BroadcastBattleHint();
} else if (killer->IsHero()) { } else if (killer->IsHero()) {
if (killer->AsHero()->master.Get() && if (killer->AsHero()->master.Get() &&
killer->AsHero()->master.Get()->IsPlayer()) { killer->AsHero()->master.Get()->IsPlayer()) {

View File

@ -349,6 +349,7 @@ private:
virtual void DoSkillPreProc(int skill_id, int target_id) override; virtual void DoSkillPreProc(int skill_id, int target_id) override;
virtual void DoSkillPostProc(bool used, 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 FillMFSettlement(cs::SMGameOver* msg, cs::MFSettlement* settlement);
void BroadcastBattleHint();
protected: protected:
long long hide_frameno_ = 0; long long hide_frameno_ = 0;

View File

@ -2183,6 +2183,16 @@ void Human::SendViewerUiMemberUpdate(std::vector<int> 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, void GGListener::SendError(int sockhandle, unsigned int seqid,
int error_code, const std::string& error_msg, int error_code, const std::string& error_msg,
const char* file, int lineno, int error_param) const char* file, int lineno, int error_param)