This commit is contained in:
aozhiwei 2021-09-28 16:39:02 +00:00
parent ee22da622e
commit 2dc3809af9

View File

@ -3734,8 +3734,10 @@ void Human::DoFollow(int target_id)
!(hum->follow_target.Get()->HasBuffEffect(kBET_Fly) ||
hum->follow_target.Get()->HasBuffEffect(kBET_Jump))
){
hum->moving = false;
hum->moved_frames = 0;
if (hum->IsPlayer()) {
hum->AsPlayer()->moving = false;
hum->AsPlayer()->moved_frames = 0;
}
hum->follow_target.Detach();
hum->room->xtimer.DeleteTimer(hum->room->xtimer.GetRunningTimer());
return;