This commit is contained in:
aozhiwei 2023-06-17 12:11:42 +08:00
parent fe72dd20b2
commit 1218520980

View File

@ -245,6 +245,9 @@ behaviac::EBTStatus BaseAgent::DoIdle(int min_time, int max_time)
if (status_ == behaviac::BT_RUNNING) {
return DoRunningCb();
}
if (a8::HasBitFlag(GetOwner()->status, CS_DisableAttackAndroid)) {
return behaviac::BT_FAILURE;
}
auto context = A8_MAKE_SMART_ANON_STRUCT_SHARED
(