mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-12-01 21:12:50 +08:00
Fix
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
#include "Playerbots.h"
|
#include "Playerbots.h"
|
||||||
#include "PositionValue.h"
|
#include "PositionValue.h"
|
||||||
#include "PvpTriggers.h"
|
#include "PvpTriggers.h"
|
||||||
#include "PathFinder.h"
|
#include "PathGenerator.h"
|
||||||
#include "ServerFacade.h"
|
#include "ServerFacade.h"
|
||||||
#include "Vehicle.h"
|
#include "Vehicle.h"
|
||||||
|
|
||||||
@@ -4167,7 +4167,7 @@ bool ArenaTactics::Execute(Event event)
|
|||||||
Unit* target = bot->GetVictim();
|
Unit* target = bot->GetVictim();
|
||||||
if (target && (!bot->IsWithinLOSInMap(target) || fabs(bot->GetPositionZ() - target->GetPositionZ()) > 5.0f))
|
if (target && (!bot->IsWithinLOSInMap(target) || fabs(bot->GetPositionZ() - target->GetPositionZ()) > 5.0f))
|
||||||
{
|
{
|
||||||
PathFinder path(bot);
|
PathGenerator path(bot);
|
||||||
path.CalculatePath(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), false);
|
path.CalculatePath(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), false);
|
||||||
|
|
||||||
if (path.IsValid() && path.GetPathType() != PATHFIND_NOPATH)
|
if (path.IsValid() && path.GetPathType() != PATHFIND_NOPATH)
|
||||||
|
|||||||
Reference in New Issue
Block a user