mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
feat: rndbot teleport, grind, stuck problem etc.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user