This commit is contained in:
aozhiwei 2022-08-02 11:39:27 +08:00
parent 5ca6f35be6
commit 139d0eeda7
2 changed files with 8 additions and 1 deletions

View File

@ -312,7 +312,7 @@ void RoomObstacle::Active()
break; break;
case kObstacleStrengthenWall: case kObstacleStrengthenWall:
{ {
ActiveStrengthenWall();
} }
break; break;
case kObstacleMedicalStation: case kObstacleMedicalStation:
@ -829,6 +829,11 @@ void RoomObstacle::CalcTempPassObjects()
} }
} }
void RoomObstacle::ActiveStrengthenWall()
{
}
void RoomObstacle::ActiveMedicalStation() void RoomObstacle::ActiveMedicalStation()
{ {
if (!grid_list_) { if (!grid_list_) {
@ -853,6 +858,7 @@ void RoomObstacle::ActiveMedicalStation()
[obstacle, &target_list, room] (Creature* hum, bool& stop) [obstacle, &target_list, room] (Creature* hum, bool& stop)
{ {
if (obstacle->master.Get()->team_id == hum->team_id && if (obstacle->master.Get()->team_id == hum->team_id &&
!hum->dead &&
obstacle->TestCollision(room, hum)) { obstacle->TestCollision(room, hum)) {
target_list.insert(hum); target_list.insert(hum);
} }

View File

@ -53,6 +53,7 @@ private:
void ActiveGully(); void ActiveGully();
void ActiveAirDrop(); void ActiveAirDrop();
void ActiveKeepRangeBuff(); void ActiveKeepRangeBuff();
void ActiveStrengthenWall();
void ActiveMedicalStation(); void ActiveMedicalStation();
void SummonAirDropBox(int box_id); void SummonAirDropBox(int box_id);