feat(Core/Map): Allow disabling the blizzlike PvP line of sight checks (#11692)
This commit is contained in:
parent
1ad79e1901
commit
b658ba582e
4 changed files with 17 additions and 0 deletions
|
|
@ -2440,6 +2440,14 @@ float Map::GetWaterLevel(float x, float y) const
|
|||
|
||||
bool Map::isInLineOfSight(float x1, float y1, float z1, float x2, float y2, float z2, uint32 phasemask, LineOfSightChecks checks, VMAP::ModelIgnoreFlags ignoreFlags) const
|
||||
{
|
||||
if (!sWorld->getBoolConfig(CONFIG_VMAP_BLIZZLIKE_PVP_LOS))
|
||||
{
|
||||
if (IsBattlegroundOrArena())
|
||||
{
|
||||
ignoreFlags = VMAP::ModelIgnoreFlags::Nothing;
|
||||
}
|
||||
}
|
||||
|
||||
if ((checks & LINEOFSIGHT_CHECK_VMAP) && !VMAP::VMapFactory::createOrGetVMapMgr()->isInLineOfSight(GetId(), x1, y1, z1, x2, y2, z2, ignoreFlags))
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue