diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartScript.cpp | 2 | ||||
| -rw-r--r-- | src/server/game/AI/SmartScripts/SmartScriptMgr.h | 7 | 
2 files changed, 7 insertions, 2 deletions
diff --git a/src/server/game/AI/SmartScripts/SmartScript.cpp b/src/server/game/AI/SmartScripts/SmartScript.cpp index 975fd328bfa..73913c3b89c 100644 --- a/src/server/game/AI/SmartScripts/SmartScript.cpp +++ b/src/server/game/AI/SmartScripts/SmartScript.cpp @@ -1196,7 +1196,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u                  x = pos.GetPositionX() + (std::cos(o - (M_PI / 2))*e.target.x) + (std::cos(o)*e.target.y);                  y = pos.GetPositionY() + (std::sin(o - (M_PI / 2))*e.target.x) + (std::sin(o)*e.target.y);                  z = pos.GetPositionZ() + e.target.z; -                target->ToCreature()->GetMotionMaster()->MovePoint(SMART_RANDOM_POINT, x, y, z); +                target->ToCreature()->GetMotionMaster()->MovePoint(e.action.moveOffset.PointId, x, y, z);              }              break;          } diff --git a/src/server/game/AI/SmartScripts/SmartScriptMgr.h b/src/server/game/AI/SmartScripts/SmartScriptMgr.h index 814a4b3e410..aaae5c0bfb3 100644 --- a/src/server/game/AI/SmartScripts/SmartScriptMgr.h +++ b/src/server/game/AI/SmartScripts/SmartScriptMgr.h @@ -568,7 +568,7 @@ enum SMART_ACTION      SMART_ACTION_GAME_EVENT_STOP                    = 111,    // GameEventId      SMART_ACTION_GAME_EVENT_START                   = 112,    // GameEventId      SMART_ACTION_START_CLOSEST_WAYPOINT             = 113,    // wp1, wp2, wp3, wp4, wp5, wp6, wp7 -    SMART_ACTION_MOVE_OFFSET                        = 114, +    SMART_ACTION_MOVE_OFFSET                        = 114,    // PointId      SMART_ACTION_RANDOM_SOUND                       = 115,    // soundId1, soundId2, soundId3, soundId4, soundId5, onlySelf      SMART_ACTION_SET_CORPSE_DELAY                   = 116,    // timer      SMART_ACTION_DISABLE_EVADE                      = 117,    // 0/1 (1 = disabled, 0 = enabled) @@ -1074,6 +1074,11 @@ struct SmartAction          struct          { +            uint32 PointId; +        } moveOffset; + +        struct +        {              uint32 sounds[4];              SAIBool onlySelf;              uint32 distance;  | 
