Core/MMaps: Implemented a way to enable/disable certain terrain types for movement on the entire map

Port From (https://github.com/TrinityCore/TrinityCore/commit/da0ba86694010fcb1adb5ed88cbc212dd4a33ab5)
This commit is contained in:
hondacrx
2024-02-01 11:34:50 -05:00
parent 06df14fe7e
commit d2edbdeecc
2 changed files with 20 additions and 4 deletions
@@ -868,6 +868,9 @@ namespace Game.Movement
void UpdateFilter()
{
_filter.setIncludeFlags((ushort)(_filter.getIncludeFlags() | _source.GetMap().GetForceEnabledNavMeshFilterFlags()));
_filter.setExcludeFlags((ushort)(_filter.getExcludeFlags() | _source.GetMap().GetForceDisabledNavMeshFilterFlags()));
// allow creatures to cheat and use different movement types if they are moved
// forcefully into terrain they can't normally move in
Unit _sourceUnit = _source.ToUnit();