fix(Core/Gameobjects): Fixed LoS for traps summoned by creatures. (#13873)
This commit is contained in:
parent
5534455c32
commit
9b525d1cee
1 changed files with 1 additions and 4 deletions
|
|
@ -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) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue