mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-02-03 02:43:49 +00:00
Merge pull request #612 from EricksOliveira/patch-4
Fix Bug Bot blocked in PT
This commit is contained in:
@@ -30,6 +30,8 @@ bool PartyCommandAction::Execute(Event event)
|
|||||||
Player* master = GetMaster();
|
Player* master = GetMaster();
|
||||||
if (master && member == master->GetName())
|
if (master && member == master->GetName())
|
||||||
return Leave(bot);
|
return Leave(bot);
|
||||||
|
|
||||||
|
botAI->Reset();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -62,6 +64,8 @@ bool UninviteAction::Execute(Event event)
|
|||||||
if (bot->GetGUID() == guid)
|
if (bot->GetGUID() == guid)
|
||||||
return Leave(bot);
|
return Leave(bot);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
botAI->Reset();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -160,6 +164,8 @@ bool LeaveFarAwayAction::isUseful()
|
|||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
botAI->Reset();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user