Core/AreaTriggers: Fixed selection range of units for box shape
Port From (https://github.com/TrinityCore/TrinityCore/commit/39c137d7c0ac1b86a3a4647113e8e3a29a32b089)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user