From 2b490ea4871196351e426d07f34fb982c502ed42 Mon Sep 17 00:00:00 2001 From: Zabustak Narvorsky Date: Thu, 25 Jul 2019 00:14:36 +0300 Subject: [PATCH] fix(DB/gameobject): Band-aid fix for Malygos platform (#2085) * Fix (DB/gameobject): Band-aid fix for Malygos platform. close https://github.com/azerothcore/azerothcore-wotlk/issues/1948 * Nexus Raid Platform no longer collapses on the first Saronite Bomb use --- data/sql/updates/pending_db_world/rev_1560396171418694700.sql | 4 ++++ .../Nexus/EyeOfEternity/instance_eye_of_eternity.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 data/sql/updates/pending_db_world/rev_1560396171418694700.sql diff --git a/data/sql/updates/pending_db_world/rev_1560396171418694700.sql b/data/sql/updates/pending_db_world/rev_1560396171418694700.sql new file mode 100644 index 000000000..7c91e859a --- /dev/null +++ b/data/sql/updates/pending_db_world/rev_1560396171418694700.sql @@ -0,0 +1,4 @@ +INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1560396171418694700'); + +UPDATE `gameobject_template_addon` SET `faction`=35 WHERE `entry`=193070; -- Nexus Raid Platform now has faction 35, instead of 0 and is friendly to players. +UPDATE `gameobject_template` SET `Data0`=6000000 WHERE `entry`=193070; -- Nexus Raid Platform has a lot more hp in order not to break in case any siege damage is taken, initial value was 100. (double safety) diff --git a/src/server/scripts/Northrend/Nexus/EyeOfEternity/instance_eye_of_eternity.cpp b/src/server/scripts/Northrend/Nexus/EyeOfEternity/instance_eye_of_eternity.cpp index 06baca8ef..b9627391f 100644 --- a/src/server/scripts/Northrend/Nexus/EyeOfEternity/instance_eye_of_eternity.cpp +++ b/src/server/scripts/Northrend/Nexus/EyeOfEternity/instance_eye_of_eternity.cpp @@ -190,7 +190,7 @@ public: if (GameObject* go = instance->GetGameObject(GO_PlatformGUID)) if (Creature* c = instance->GetCreature(NPC_MalygosGUID)) { - go->ModifyHealth(-1000000, c); + go->ModifyHealth(-6500000, c); // We have HP 6 million in the database... So we have to do at least that go->EnableCollision(false); } break;