From 303d230aa8acab86921086c34a23e4afcabe3005 Mon Sep 17 00:00:00 2001 From: insunaa Date: Sat, 28 Oct 2023 14:55:54 +0200 Subject: [PATCH] BossAI: prepare for rebase --- src/game/Entities/Unit.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/game/Entities/Unit.cpp b/src/game/Entities/Unit.cpp index e4aa3f1d6d4..b84ef4324aa 100644 --- a/src/game/Entities/Unit.cpp +++ b/src/game/Entities/Unit.cpp @@ -9157,12 +9157,6 @@ bool Unit::IsVisibleForOrDetect(Unit const* u, WorldObject const* viewPoint, boo if (m_Visibility == VISIBILITY_REMOVE_CORPSE) return false; - if (this->IsBoarded()) - if (Unit* vehicle = dynamic_cast(this->GetTransportInfo()->GetTransport())) - if (Player* player = const_cast(dynamic_cast(u))) - if (!player->HasAtClient(vehicle)) - return false; - Map& _map = *u->GetMap(); // Grid dead/alive checks if (u->GetTypeId() == TYPEID_PLAYER)