From de0bd4276c0f899283fabddb705495cf2ef8dff4 Mon Sep 17 00:00:00 2001 From: Ovalord <1Don7H4v3@m41L.com> Date: Mon, 15 Jan 2018 15:12:19 +0100 Subject: [PATCH] Scripts/Gilneas: remove Josiah from phase 170 to prevent him to be visible in the old phase --- src/server/scripts/EasternKingdoms/Gilneas/chapter1.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server/scripts/EasternKingdoms/Gilneas/chapter1.cpp b/src/server/scripts/EasternKingdoms/Gilneas/chapter1.cpp index 0b3371ae2da..0ccd824bfb5 100644 --- a/src/server/scripts/EasternKingdoms/Gilneas/chapter1.cpp +++ b/src/server/scripts/EasternKingdoms/Gilneas/chapter1.cpp @@ -344,6 +344,7 @@ class npc_worgen_runt : public CreatureScript enum TheRebelLordsArsena { + PHASE_ID_SUMMON = 170, PHASE_ID_WOUND = 171, NPC_LORNA_CROWLEY = 35378, NPC_GENERIC_TRIGGER_LAB = 35374, @@ -369,8 +370,10 @@ class npc_josiah_avery : public CreatureScript npc_josiah_averyAI(Creature* creature) : PassiveAI(creature) { } + void IsSummonedBy(Unit* summoner) override { + me->SetInPhase(PHASE_ID_SUMMON, false, false); me->SetInPhase(PHASE_ID_WOUND, false, true); _playerGuid = summoner->GetGUID(); _events.ScheduleEvent(EVENT_COSMETIC_ATTACK, Milliseconds(500));