1
This commit is contained in:
parent
edf9df5821
commit
b070f90760
@ -2488,17 +2488,23 @@ void Human::SendBattleReport()
|
||||
}
|
||||
std::string data;
|
||||
params->ToUrlEncodeStr(data);
|
||||
HttpProxy::Instance()->HttpGet
|
||||
(
|
||||
a8::XParams()
|
||||
.SetSender(room->GetRoomUuid())
|
||||
.SetParam1(account_id)
|
||||
.SetParam2(data),
|
||||
on_ok,
|
||||
on_error,
|
||||
url.c_str(),
|
||||
*params.get()
|
||||
);
|
||||
if (stats.is_run_away) {
|
||||
sending_battlereport_ = false;
|
||||
already_report_battle_ = true;
|
||||
SendGameOver();
|
||||
} else {
|
||||
HttpProxy::Instance()->HttpGet
|
||||
(
|
||||
a8::XParams()
|
||||
.SetSender(room->GetRoomUuid())
|
||||
.SetParam1(account_id)
|
||||
.SetParam2(data),
|
||||
on_ok,
|
||||
on_error,
|
||||
url.c_str(),
|
||||
*params.get()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
void Human::ProcLootSkin(AddItemDTO& dto)
|
||||
|
@ -1107,7 +1107,9 @@ void Player::_CMGameOver(f8::MsgHdr& hdr, const cs::CMGameOver& msg)
|
||||
if (!dead) {
|
||||
BeKill(GetUniId(), name, 0);
|
||||
}
|
||||
if (room->GetGasData().GetGasMode() == GasInactive) {
|
||||
if (room->GetGasData().GetGasMode() == GasInactive ||
|
||||
HasBuffEffect(kBET_Fly) ||
|
||||
HasBuffEffect(kBET_Jump)) {
|
||||
stats.is_run_away = true;
|
||||
}
|
||||
SendGameOver();
|
||||
@ -1128,7 +1130,9 @@ void Player::_CMLeave(f8::MsgHdr& hdr, const cs::CMLeave& msg)
|
||||
leave_ = true;
|
||||
leave_frameno_ = room->GetFrameNo();
|
||||
}
|
||||
if (room->GetGasData().GetGasMode() == GasInactive) {
|
||||
if (room->GetGasData().GetGasMode() == GasInactive ||
|
||||
HasBuffEffect(kBET_Fly) ||
|
||||
HasBuffEffect(kBET_Jump)) {
|
||||
stats.is_run_away = true;
|
||||
}
|
||||
cs::SMLeave respmsg;
|
||||
|
Loading…
x
Reference in New Issue
Block a user