1
This commit is contained in:
parent
e0373b472c
commit
943e2b989e
@ -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()) {
|
||||
|
@ -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;
|
||||
|
@ -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,
|
||||
int error_code, const std::string& error_msg,
|
||||
const char* file, int lineno, int error_param)
|
||||
|
Loading…
x
Reference in New Issue
Block a user