This commit is contained in:
aozhiwei 2024-02-02 16:20:18 +08:00
parent 88797a0fa6
commit f3042168a4

View File

@ -1979,19 +1979,23 @@ void Room::ShuaPlane()
plane.curr_pos = plane.start_point; plane.curr_pos = plane.start_point;
last_player_jump_pos = plane.curr_pos; last_player_jump_pos = plane.curr_pos;
for (auto& pair : human_hash_) { TraverseHumanList
pair.second->MustBeAddBuff(pair.second, FLY_BUFFID); (
pair.second->ResetAllSkillCd(); [this] (Human* ele_hum) -> bool
App::Instance()->verify_set_pos = 1; {
pair.second->GetMutablePos().FromGlmVec3(plane.curr_pos); ele_hum->MustBeAddBuff(ele_hum, FLY_BUFFID);
App::Instance()->verify_set_pos = 0; ele_hum->ResetAllSkillCd();
pair.second->GetMovement()->ClearPath(); App::Instance()->verify_set_pos = 1;
pair.second->SetAttackDir(plane.dir); ele_hum->GetMutablePos().FromGlmVec3(plane.curr_pos);
pair.second->SetMoveDir(plane.dir); App::Instance()->verify_set_pos = 0;
grid_service->MoveCreature(pair.second); ele_hum->GetMovement()->ClearPath();
pair.second->AddToNewObjects(pair.second); ele_hum->SetAttackDir(plane.dir);
pair.second->ActiveAllSkill(); ele_hum->SetMoveDir(plane.dir);
} grid_service->MoveCreature(ele_hum);
ele_hum->AddToNewObjects(ele_hum);
ele_hum->ActiveAllSkill();
return true;
});
} }
RoomObstacle* Room::InternalCreateObstacle(int id, float x, float y, float z, RoomObstacle* Room::InternalCreateObstacle(int id, float x, float y, float z,