From e11714e9488a958ff80a82dce7e41aa0b7b787b7 Mon Sep 17 00:00:00 2001 From: keke222 Date: Tue, 23 Jul 2013 00:19:33 +0200 Subject: [PATCH] Scripts/Onyxia's Lair: Fixed movement during flight phase and set proper InhabitType Closes #10335 --- sql/updates/world/2013_07_23_02_world_creature_template.sql | 1 + src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 sql/updates/world/2013_07_23_02_world_creature_template.sql diff --git a/sql/updates/world/2013_07_23_02_world_creature_template.sql b/sql/updates/world/2013_07_23_02_world_creature_template.sql new file mode 100644 index 0000000000..b55999040f --- /dev/null +++ b/sql/updates/world/2013_07_23_02_world_creature_template.sql @@ -0,0 +1 @@ +UPDATE `creature_template` SET `InhabitType` = 5 WHERE `entry` = 10184; diff --git a/src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp b/src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp index afcbf1f004..0adc6190d4 100644 --- a/src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp +++ b/src/server/scripts/Kalimdor/OnyxiasLair/boss_onyxia.cpp @@ -413,7 +413,7 @@ public: } break; case EVENT_MOVEMENT: // Phase PHASE_BREATH - if (!IsMoving) + if (!IsMoving && !(me->HasUnitState(UNIT_STATE_CASTING))) { SetNextRandomPoint(); PointData = GetMoveData();