From 139d0eeda755f275dce6195c9e6b5faa0e5febfa Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Tue, 2 Aug 2022 11:39:27 +0800 Subject: [PATCH] 1 --- server/gameserver/roomobstacle.cc | 8 +++++++- server/gameserver/roomobstacle.h | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/server/gameserver/roomobstacle.cc b/server/gameserver/roomobstacle.cc index 6af3d285..81fb8a7c 100644 --- a/server/gameserver/roomobstacle.cc +++ b/server/gameserver/roomobstacle.cc @@ -312,7 +312,7 @@ void RoomObstacle::Active() break; case kObstacleStrengthenWall: { - + ActiveStrengthenWall(); } break; case kObstacleMedicalStation: @@ -829,6 +829,11 @@ void RoomObstacle::CalcTempPassObjects() } } +void RoomObstacle::ActiveStrengthenWall() +{ + +} + void RoomObstacle::ActiveMedicalStation() { if (!grid_list_) { @@ -853,6 +858,7 @@ void RoomObstacle::ActiveMedicalStation() [obstacle, &target_list, room] (Creature* hum, bool& stop) { if (obstacle->master.Get()->team_id == hum->team_id && + !hum->dead && obstacle->TestCollision(room, hum)) { target_list.insert(hum); } diff --git a/server/gameserver/roomobstacle.h b/server/gameserver/roomobstacle.h index ac37e0e7..70d5adea 100644 --- a/server/gameserver/roomobstacle.h +++ b/server/gameserver/roomobstacle.h @@ -53,6 +53,7 @@ private: void ActiveGully(); void ActiveAirDrop(); void ActiveKeepRangeBuff(); + void ActiveStrengthenWall(); void ActiveMedicalStation(); void SummonAirDropBox(int box_id);