fix(Core/Gameobjects): Fixed LoS for traps summoned by creatures. (#13873)
This commit is contained in:
@@ -930,11 +930,8 @@ namespace Acore
|
||||
if (i_obj->GetTypeId() == TYPEID_GAMEOBJECT)
|
||||
{
|
||||
losChecks &= ~LINEOFSIGHT_CHECK_GOBJECT_M2;
|
||||
if (i_owner->IsPlayer())
|
||||
{
|
||||
collisionHeight = i_owner->GetCollisionHeight();
|
||||
}
|
||||
}
|
||||
|
||||
if (!i_obj->IsWithinDistInMap(u, i_range) || !i_owner->IsValidAttackTarget(u) ||
|
||||
!i_obj->IsWithinLOSInMap(u, VMAP::ModelIgnoreFlags::Nothing, LineOfSightChecks(losChecks), collisionHeight))
|
||||
|
||||
Reference in New Issue
Block a user