Skip to content

Commit

Permalink
-Mount fix: Stops bot mounting/shapeshifting to mount when in water.
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r committed Jul 11, 2023
1 parent 522f482 commit 74c1f18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions playerbot/strategy/actions/CheckMountStateAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ bool CheckMountStateAction::isUseful()
if (!bot->GetPlayerbotAI()->HasStrategy("mount", BotState::BOT_STATE_NON_COMBAT) && !bot->IsMounted())
return false;

if (!bot->IsMounted() && bot->IsInWater())
return false;

bool firstmount = bot->GetLevel() >=
#ifdef MANGOSBOT_ZERO
40
Expand Down

0 comments on commit 74c1f18

Please sign in to comment.