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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user