MoveToTravelTargetAction prevent delay when in combat (#1558)

This commit is contained in:
bash
2025-08-18 02:38:06 +02:00
committed by GitHub
parent fa7b863035
commit b369b1f9ae

View File

@@ -18,7 +18,7 @@ bool MoveToTravelTargetAction::Execute(Event event)
WorldLocation location = *target->getPosition();
Group* group = bot->GetGroup();
if (group && !urand(0, 1) && bot == botAI->GetGroupMaster())
if (group && !urand(0, 1) && bot == botAI->GetGroupMaster() && !bot->IsInCombat())
{
for (GroupReference* ref = group->GetFirstMember(); ref; ref = ref->next())
{