mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
fix(Core/Objects): LoS calculation (#5084)
This commit is contained in:
@@ -1184,7 +1184,7 @@ bool WorldObject::IsWithinLOSInMap(const WorldObject* obj, LineOfSightChecks che
|
|||||||
if (obj->GetTypeId() == TYPEID_PLAYER)
|
if (obj->GetTypeId() == TYPEID_PLAYER)
|
||||||
{
|
{
|
||||||
obj->GetPosition(ox, oy, oz);
|
obj->GetPosition(ox, oy, oz);
|
||||||
oz += GetCollisionHeight();
|
oz += obj->GetCollisionHeight();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
obj->GetHitSpherePointFor({ GetPositionX(), GetPositionY(), GetPositionZ() + GetCollisionHeight() }, ox, oy, oz);
|
obj->GetHitSpherePointFor({ GetPositionX(), GetPositionY(), GetPositionZ() + GetCollisionHeight() }, ox, oy, oz);
|
||||||
|
|||||||
Reference in New Issue
Block a user