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)
|
if (i_obj->GetTypeId() == TYPEID_GAMEOBJECT)
|
||||||
{
|
{
|
||||||
losChecks &= ~LINEOFSIGHT_CHECK_GOBJECT_M2;
|
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) ||
|
if (!i_obj->IsWithinDistInMap(u, i_range) || !i_owner->IsValidAttackTarget(u) ||
|
||||||
|
|||||||
Reference in New Issue
Block a user