Core/SAI: Added support for StringIds to creature and gameobject targets
Port From (https://github.com/TrinityCore/TrinityCore/commit/2ce40684595a0e49a7b2355012c2806952698ce4)
This commit is contained in:
@@ -609,8 +609,10 @@ namespace Game.Entities
|
||||
var check = new AnyUnitInObjectRangeCheck(this, radius, check3D);
|
||||
if (IsStaticSpawn())
|
||||
{
|
||||
var searcher = new PlayerListSearcher(this, targetList, check);
|
||||
List<Player> temp = new List<Player>();
|
||||
var searcher = new PlayerListSearcher(this, temp, check);
|
||||
Cell.VisitWorldObjects(this, searcher, GetMaxSearchRadius());
|
||||
targetList.AddRange(temp);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user