Core/GameObjects: Implemented Checkallunits property for traps
Port From (https://github.com/TrinityCore/TrinityCore/commit/ffe870fc425e0e64fdc6b322a1596e82a6ff45c9)
This commit is contained in:
@@ -622,7 +622,7 @@ namespace Game.Entities
|
|||||||
|
|
||||||
Unit target;
|
Unit target;
|
||||||
// @todo this hack with search required until GO casting not implemented
|
// @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
|
// Hunter trap: Search units which are unfriendly to the trap's owner
|
||||||
var checker = new NearestAttackableNoTotemUnitInObjectRangeCheck(this, radius);
|
var checker = new NearestAttackableNoTotemUnitInObjectRangeCheck(this, radius);
|
||||||
|
|||||||
Reference in New Issue
Block a user