Core/GameObjects: Implemented Checkallunits property for traps

Port From (https://github.com/TrinityCore/TrinityCore/commit/ffe870fc425e0e64fdc6b322a1596e82a6ff45c9)
This commit is contained in:
hondacrx
2023-02-12 01:16:38 -05:00
parent b460536e35
commit b9af2168de
@@ -622,7 +622,7 @@ namespace Game.Entities
Unit target;
// @todo this hack with search required until GO casting not implemented
if (GetOwner() != null)
if (GetOwner() != null || goInfo.Trap.Checkallunits != 0)
{
// Hunter trap: Search units which are unfriendly to the trap's owner
var checker = new NearestAttackableNoTotemUnitInObjectRangeCheck(this, radius);