This commit is contained in:
aozhiwei 2021-09-30 10:10:42 +08:00
parent 0dbd6af8f4
commit ad97ab4c31
2 changed files with 10 additions and 0 deletions

View File

@ -881,6 +881,10 @@ void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
#if DEBUG
App::Instance()->debug_params[118] = a8::XValue(cmds[1]);
#endif
} else if (cmd == "chiji") {
#if DEBUG
App::Instance()->debug_params[119] = 1;
#endif
} else if (cmd == "wudi") {
int buff_uniid = TryAddBuff(this, 1005);
if (buff_uniid != 0) {

View File

@ -4,6 +4,7 @@
#include "human.h"
#include "room.h"
#include "app.h"
void Team::TraverseMembers(std::function<bool (Human*)> func)
{
@ -35,6 +36,11 @@ Human* Team::GetOneAliveMember(Human* exclude_hum)
bool Team::HasAliveMember()
{
#if DEBUG
if (App::Instance()->debug_params.find(199) != App::Instance()->debug_params.end()) {
return 1;
}
#endif
for (Human* member : members_) {
if (!member->real_dead) {
return true;