mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-16 18:30:27 +00:00
miscs: CMSG received correctly (quest, loot etc.)
This commit is contained in:
@@ -1226,6 +1226,9 @@ void MovementAction::ClearIdleState()
|
||||
|
||||
bool MovementAction::MoveAway(Unit* target)
|
||||
{
|
||||
if (!target) {
|
||||
return false;
|
||||
}
|
||||
float angle = target->GetAngle(bot);
|
||||
float dx = bot->GetPositionX() + cos(angle) * sPlayerbotAIConfig->fleeDistance;
|
||||
float dy = bot->GetPositionY() + sin(angle) * sPlayerbotAIConfig->fleeDistance;
|
||||
|
||||
Reference in New Issue
Block a user