fix(Core/Gameobjects): Fixed LoS for traps summoned by creatures. (#13873)

This commit is contained in:
UltraNix
2023-01-02 21:06:12 +01:00
committed by GitHub
parent 5534455c32
commit 9b525d1cee

View File

@@ -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) ||