Core/AreaTriggers: Fixed selection range of units for box shape

Port From (https://github.com/TrinityCore/TrinityCore/commit/39c137d7c0ac1b86a3a4647113e8e3a29a32b089)
This commit is contained in:
hondacrx
2023-07-01 09:28:29 -04:00
parent 074127fc34
commit 0a997ceb69
2 changed files with 2 additions and 2 deletions
@@ -430,7 +430,7 @@ namespace Game.Entities
extentsZ = _shape.BoxDatas.Extents[2];
}
targetList.RemoveAll(unit => !unit.IsWithinBox(boxCenter, extentsX, extentsY, extentsZ));
targetList.RemoveAll(unit => !unit.IsWithinBox(boxCenter, extentsX, extentsY, extentsZ / 2));
}
void SearchUnitInPolygon(List<Unit> targetList)