feat: rndbot teleport, grind, stuck problem etc.

This commit is contained in:
Yunfan Li
2023-08-01 23:21:06 +08:00
parent 6b7bf8ade7
commit 0969db4c89
15 changed files with 178 additions and 157 deletions

View File

@@ -3,6 +3,7 @@
*/
#include "Arrow.h"
#include "Map.h"
#include "Playerbots.h"
WorldLocation ArrowFormation::GetLocationInternal()
@@ -47,8 +48,8 @@ WorldLocation ArrowFormation::GetLocationInternal()
float ground = master->GetMap()->GetHeight(x, y, z + 0.5f);
if (ground <= INVALID_HEIGHT)
return Formation::NullLocation;
return WorldLocation(master->GetMapId(), x, y, 0.05f + ground);
// master->UpdateGroundPositionZ(x, y, z);
return WorldLocation(master->GetMapId(), x, y, z);
}
void ArrowFormation::Build()