mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 10:26:28 +01:00
*Update vehicle code.
*Show correct visual effects to other players. *Do not allow attack players on vehicle. *Only dismiss vehicle when it is summoned. --HG-- branch : trunk
This commit is contained in:
@@ -723,7 +723,7 @@ void Map::Update(const uint32 &t_diff)
|
||||
}
|
||||
}
|
||||
|
||||
if(plr->m_seer != plr)
|
||||
if(plr->m_seer != plr && !plr->hasUnitState(UNIT_STAT_ONVEHICLE))
|
||||
{
|
||||
Trinity::PlayerVisibilityNotifier notifier(*plr);
|
||||
VisitAll(plr->m_seer->GetPositionX(), plr->m_seer->GetPositionY(), World::GetMaxVisibleDistance(), notifier);
|
||||
|
||||
Reference in New Issue
Block a user