This commit is contained in:
aozhiwei 2023-03-23 10:58:10 +08:00
parent 32978b6669
commit 2bb416f30e

View File

@ -1125,6 +1125,12 @@ void Player::_CMExecCommand(f8::MsgHdr& hdr, const cs::CMExecCommand& msg)
if (buff_meta) {
MustBeAddBuff(this, buff_id);
}
} else if (cmd == "findobj" && cmds.size() >= 2) {
int obj_uniid = a8::XValue(cmds[1]);
Entity* e = room->GetEntityByUniId(obj_uniid);
if (e && e->IsEntityType(ET_Player)) {
}
} else if (cmd == "getattr" && cmds.size() >= 2) {
int attr_id = a8::XValue(cmds[1]);
float abs_val = GetAbility()->GetAttrAbs(attr_id);