diff options
author | thenecromancer <none@none> | 2010-01-13 11:27:41 +0100 |
---|---|---|
committer | thenecromancer <none@none> | 2010-01-13 11:27:41 +0100 |
commit | f57f33eacf2413cbc3e3f0552fc474b9cc13cc2e (patch) | |
tree | 8e08bac0f4676e935d63faf74bbc4317de484a26 | |
parent | 531cd027aa028068a981d1c3e31af26c7ee2ffef (diff) |
Fix Gargoyle movement when flying away
--HG--
branch : trunk
-rw-r--r-- | src/bindings/scripts/scripts/world/npcs_special.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/bindings/scripts/scripts/world/npcs_special.cpp b/src/bindings/scripts/scripts/world/npcs_special.cpp index 7908e2989f1..9a2b9b48604 100644 --- a/src/bindings/scripts/scripts/world/npcs_special.cpp +++ b/src/bindings/scripts/scripts/world/npcs_special.cpp @@ -1842,12 +1842,13 @@ struct TRINITY_DLL_DECL npc_ebon_gargoyleAI : CasterAI me->SetReactState(REACT_PASSIVE); // Fly Away - me->AddUnitMovementFlag(MOVEMENTFLAG_FLY_MODE); - me->SetSpeed(MOVE_FLIGHT, 0.25f, true); - me->SetSpeed(MOVE_RUN, 0.25f, true); - float x = me->GetPositionX() + 10 * cos(me->GetOrientation()); - float y = me->GetPositionY() + 10 * sin(me->GetOrientation()); - float z = me->GetPositionZ() + 25; + me->AddUnitMovementFlag(MOVEMENTFLAG_FLY_MODE|MOVEMENTFLAG_ASCEND|MOVEMENTFLAG_FLYING); + me->SetSpeed(MOVE_FLIGHT, 0.75f, true);
+ me->SetSpeed(MOVE_RUN, 0.75f, true); + float x = me->GetPositionX() + 20 * cos(me->GetOrientation());
+ float y = me->GetPositionY() + 20 * sin(me->GetOrientation());
+ float z = me->GetPositionZ() + 40; + me->GetMotionMaster()->Clear(false); me->GetMotionMaster()->MovePoint(0, x, y, z); // Despawn as soon as possible |