mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 11:25:42 +00:00
fix(Core/Gameobjects): Fixed LoS for traps summoned by creatures. (#13873)
This commit is contained in:
@@ -930,10 +930,7 @@ namespace Acore
|
||||
if (i_obj->GetTypeId() == TYPEID_GAMEOBJECT)
|
||||
{
|
||||
losChecks &= ~LINEOFSIGHT_CHECK_GOBJECT_M2;
|
||||
if (i_owner->IsPlayer())
|
||||
{
|
||||
collisionHeight = i_owner->GetCollisionHeight();
|
||||
}
|
||||
collisionHeight = i_owner->GetCollisionHeight();
|
||||
}
|
||||
|
||||
if (!i_obj->IsWithinDistInMap(u, i_range) || !i_owner->IsValidAttackTarget(u) ||
|
||||
|
||||
Reference in New Issue
Block a user