mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-04 08:07:09 +01:00
*Use degree rather than radian for creature_formation table.
--HG-- branch : trunk
This commit is contained in:
@@ -4506,7 +4506,7 @@ bool ChatHandler::HandleNpcAddFormationCommand(const char* args)
|
||||
FormationInfo *group_member;
|
||||
|
||||
group_member = new FormationInfo;
|
||||
group_member->follow_angle = pCreature->GetAngle(chr) - chr->GetOrientation();
|
||||
group_member->follow_angle = (pCreature->GetAngle(chr) - chr->GetOrientation()) * 180 / M_PI;
|
||||
group_member->follow_dist = sqrtf(pow(chr->GetPositionX() - pCreature->GetPositionX(),int(2))+pow(chr->GetPositionY()-pCreature->GetPositionY(),int(2)));
|
||||
group_member->leaderGUID = leaderGUID;
|
||||
group_member->groupAI = 0;
|
||||
|
||||
Reference in New Issue
Block a user