Skip to content

Commit

Permalink
NPCBots: Fix bots not always having CAN_SWIM flag
Browse files Browse the repository at this point in the history
(cherry picked from commit 27d985e03d3ebc8d4edee087f508891356faf04c)
  • Loading branch information
trickerer committed Nov 6, 2024
1 parent a77d4cc commit d341649
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/server/game/AI/NpcBots/bot_ai.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ const std::string& bot_ai::LocalizedNpcText(Player const* forPlayer, uint32 text

void bot_ai::InitializeAI()
{
me->RefreshCanSwimFlag();

if (!me->GetSpawnId() && !IsTempBot())
SetWanderer();

Expand Down

0 comments on commit d341649

Please sign in to comment.