Skip to content

Commit

Permalink
-Tbc crash fix: Bots trying set mob avoidance while in instances.
Browse files Browse the repository at this point in the history
  • Loading branch information
mostlikely4r committed Sep 30, 2024
1 parent e75b331 commit 48c538e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions playerbot/strategy/actions/SetAvoidAreaAction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ bool SetAvoidAreaAction::Execute(Event& event)

bool SetAvoidAreaAction::isUseful()
{
if (bot->GetInstanceId())
return false;

PositionEntry p = AI_VALUE2(PositionEntry, "pos", "last avoid");

if (!p.isSet())
Expand Down

0 comments on commit 48c538e

Please sign in to comment.