From 9be41ff4e628e1f6c3bc92a8140a9f8139c89ff5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefano=20Borz=C3=AC?= Date: Fri, 1 Jan 2021 20:02:08 +0100 Subject: [PATCH] fix(Core/Quest): They're Alive! Maybe... (#4035) Co-authored-by: Kitzunu <24550914+Kitzunu@users.noreply.github.com> --- src/server/scripts/Kalimdor/zone_bloodmyst_isle.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/server/scripts/Kalimdor/zone_bloodmyst_isle.cpp b/src/server/scripts/Kalimdor/zone_bloodmyst_isle.cpp index cd08b3d80..12920929b 100644 --- a/src/server/scripts/Kalimdor/zone_bloodmyst_isle.cpp +++ b/src/server/scripts/Kalimdor/zone_bloodmyst_isle.cpp @@ -24,7 +24,7 @@ EndContentData */ ######*/ //possible creatures to be spawned -uint32 const possibleSpawns[32] = {17322, 17661, 17496, 17522, 17340, 17352, 17333, 17524, 17654, 17348, 17339, 17345, 17359, 17353, 17336, 17550, 17330, 17701, 17321, 17680, 17325, 17320, 17683, 17342, 17715, 17334, 17341, 17338, 17337, 17346, 17344, 17327}; +uint32 const possibleSpawns[32] = {17322, 17661, 17496, 17522, 17340, 17352, 17333, 17524, 17654, 17348, 17339, 17345, 17359, 17353, 17336, 17550, 17330, 17701, 17321, 17325, 17320, 17683, 17342, 17715, 17334, 17341, 17338, 17337, 17346, 17344, 17327}; enum WebbedCreature { @@ -51,8 +51,11 @@ public: switch (urand(0, 2)) { case 0: - if (Player* player = killer->ToPlayer()) + if (Player* player = killer->ToPlayer()) + { player->KilledMonsterCredit(NPC_EXPEDITION_RESEARCHER, 0); + } + spawnCreatureID = NPC_EXPEDITION_RESEARCHER; break; case 1: case 2: @@ -60,8 +63,10 @@ public: break; } - if (spawnCreatureID) + if (spawnCreatureID) + { me->SummonCreature(spawnCreatureID, 0.0f, 0.0f, 0.0f, me->GetOrientation(), TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 60000); + } } };