This commit is contained in:
aozhiwei 2024-03-06 19:42:07 +08:00
parent e17c25b65f
commit ec9aea5bc1

View File

@ -167,6 +167,9 @@ void Player::_CMExecCommand(f8::MsgHdr* hdr, const cs::CMExecCommand& msg)
if (buff_meta) {
MustBeAddBuff(this, buff_id);
}
} else if (cmd == "delbuff" && cmds.size() >= 2) {
int buff_id = a8::XValue(cmds[1]);
RemoveBuffById(buff_id);
} else if (cmd == "findobj" && cmds.size() >= 2) {
int obj_uniid = a8::XValue(cmds[1]);
Entity* e = room->GetEntityByUniId(obj_uniid);