This commit is contained in:
aozhiwei 2023-06-29 18:09:34 +08:00
parent c153c0945a
commit a65cedd7a6
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@
<property Operator="Equal" /> <property Operator="Equal" />
<property Opl="Self.AndroidAgent::IsCrazeModePrepareMode()" /> <property Opl="Self.AndroidAgent::IsCrazeModePrepareMode()" />
<property Opr2="const bool true" /> <property Opr2="const bool true" />
<property Phase="Enter" /> <property Phase="Both" />
</attachment> </attachment>
<attachment class="Event" id="10" flag="event"> <attachment class="Event" id="10" flag="event">
<property ReferenceFilename="android_attack" /> <property ReferenceFilename="android_attack" />

View File

@ -54,7 +54,7 @@ bool AndroidAgent::IsCrazeModePrepareMode()
if (!IsCrazeMode()) { if (!IsCrazeMode()) {
return false; return false;
} }
if (GetOwner()->room->GetFrameNo() - owner_->enable_frameno > SERVER_FRAME_RATE * 20) { if (GetOwner()->room->GetFrameNo() - GetOwner()->AsHuman()->enable_frameno > SERVER_FRAME_RATE * 20) {
return false; return false;
} else { } else {
if (GetSafeAreaRadius() < 200) { if (GetSafeAreaRadius() < 200) {