Skip to content

Commit

Permalink
BossAI: prepare for rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Oct 28, 2023
1 parent ff9f45d commit 303d230
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/game/Entities/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<Unit*>(this->GetTransportInfo()->GetTransport()))
if (Player* player = const_cast<Player*>(dynamic_cast<const Player*>(u)))
if (!player->HasAtClient(vehicle))
return false;

Map& _map = *u->GetMap();
// Grid dead/alive checks
if (u->GetTypeId() == TYPEID_PLAYER)
Expand Down

0 comments on commit 303d230

Please sign in to comment.