Skip to content

Commit bc96aa5

Browse files
committed
refactor(Core/Movement): Drop bot-specific filter block from CreateFilter
1 parent b0cd3cd commit bc96aa5

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

src/server/game/Movement/MovementGenerators/PathGenerator.cpp

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
#include "MMapMgr.h"
2424
#include "Map.h"
2525
#include "Metric.h"
26-
#ifdef MOD_PLAYERBOTS
27-
#include "Player.h"
28-
#include "WorldSession.h"
29-
#endif
3026

3127
////////////////// PathGenerator //////////////////
3228
PathGenerator::PathGenerator(WorldObject const* owner) :
@@ -667,20 +663,6 @@ void PathGenerator::CreateFilter()
667663
{
668664
// perfect support not possible, just stay 'safe'
669665
includeFlags |= (NAV_GROUND | NAV_GROUND_STEEP | NAV_WATER | NAV_MAGMA);
670-
671-
#ifdef MOD_PLAYERBOTS
672-
// Soft cost bias instead of a hard exclude for STEEP — keeps cave
673-
// entries and similar 50°+ terrain reachable while A* still prefers
674-
// gentler routes when they exist. Water is biased the same way:
675-
// swim if necessary, but prefer dry land. Pairs with mmaps_generator's
676-
// modAlmostUnwalkableTriangles at 50° (50°–60° polys get NAV_GROUND_STEEP).
677-
Player const* p = _source->ToPlayer();
678-
if (p && p->GetSession() && p->GetSession()->IsBot())
679-
{
680-
_filter.setAreaCost(NAV_GROUND_STEEP, 5.0f);
681-
_filter.setAreaCost(NAV_WATER, 10.0f);
682-
}
683-
#endif
684666
}
685667

686668
_filter.setIncludeFlags(includeFlags);

0 commit comments

Comments
 (0)