1
This commit is contained in:
parent
edf9df5821
commit
b070f90760
@ -2488,6 +2488,11 @@ void Human::SendBattleReport()
|
|||||||
}
|
}
|
||||||
std::string data;
|
std::string data;
|
||||||
params->ToUrlEncodeStr(data);
|
params->ToUrlEncodeStr(data);
|
||||||
|
if (stats.is_run_away) {
|
||||||
|
sending_battlereport_ = false;
|
||||||
|
already_report_battle_ = true;
|
||||||
|
SendGameOver();
|
||||||
|
} else {
|
||||||
HttpProxy::Instance()->HttpGet
|
HttpProxy::Instance()->HttpGet
|
||||||
(
|
(
|
||||||
a8::XParams()
|
a8::XParams()
|
||||||
@ -2499,6 +2504,7 @@ void Human::SendBattleReport()
|
|||||||
url.c_str(),
|
url.c_str(),
|
||||||
*params.get()
|
*params.get()
|
||||||
);
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Human::ProcLootSkin(AddItemDTO& dto)
|
void Human::ProcLootSkin(AddItemDTO& dto)
|
||||||
|
@ -1107,7 +1107,9 @@ void Player::_CMGameOver(f8::MsgHdr& hdr, const cs::CMGameOver& msg)
|
|||||||
if (!dead) {
|
if (!dead) {
|
||||||
BeKill(GetUniId(), name, 0);
|
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;
|
stats.is_run_away = true;
|
||||||
}
|
}
|
||||||
SendGameOver();
|
SendGameOver();
|
||||||
@ -1128,7 +1130,9 @@ void Player::_CMLeave(f8::MsgHdr& hdr, const cs::CMLeave& msg)
|
|||||||
leave_ = true;
|
leave_ = true;
|
||||||
leave_frameno_ = room->GetFrameNo();
|
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;
|
stats.is_run_away = true;
|
||||||
}
|
}
|
||||||
cs::SMLeave respmsg;
|
cs::SMLeave respmsg;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user