1 Commits

Author SHA1 Message Date
bash
29fbef3c9c Squashed playerbot custom changes 2026-01-09 01:08:29 +01:00
3 changed files with 5 additions and 2 deletions

View File

@@ -718,6 +718,7 @@ Logger.spells.scripts=2,Console Errors
Logger.playerbots=5,Console Playerbots
#Logger.achievement=4,Console Server
#Logger.addon=4,Console Server
#Logger.ahbot=4,Console Server
#Logger.auctionHouse=4,Console Server
#Logger.autobroadcast=4, Console Server
#Logger.bg.arena=4,Console Server

View File

@@ -2052,6 +2052,8 @@ public:
void OutDebugInfo() const;
std::string GetDebugInfo() const override;
bool m_cannotReachTarget;
//----------- Public variables ----------//
uint32 m_extraAttacks;
DualWieldMode _dualWieldMode;

View File

@@ -389,10 +389,10 @@ void FlightPathMovementGenerator::LoadPath(Player* player)
LOG_ERROR("movement.flightpath", "Failed to build correct path for player: {}. Current node: {}, max nodes: {}. Paths: {}. Player pos: {}.", player->GetGUID().ToString(), GetCurrentNode(), i_path.size(), paths, player->GetPosition().ToString());
// Lets choose the second last element so that a player would still have some flight.
if (i_path.size() >= 2)
if (int(i_path.size()) - 2 >= 0)
i_currentNode = uint32(i_path.size() - 2);
else
i_currentNode = 0;
i_currentNode = uint32(i_path.size() - 1);
}
}