From ffc0ebc8428212ca3a93df1a8440315afcc23865 Mon Sep 17 00:00:00 2001 From: killerwife Date: Sun, 24 Sep 2023 16:00:24 +0200 Subject: [PATCH] Bloodmyst: Enable legoso support for spell lists --- .../scripts/kalimdor/bloodmyst_isle.cpp | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/game/AI/ScriptDevAI/scripts/kalimdor/bloodmyst_isle.cpp b/src/game/AI/ScriptDevAI/scripts/kalimdor/bloodmyst_isle.cpp index 9ad93a7468..e29f88391b 100644 --- a/src/game/AI/ScriptDevAI/scripts/kalimdor/bloodmyst_isle.cpp +++ b/src/game/AI/ScriptDevAI/scripts/kalimdor/bloodmyst_isle.cpp @@ -406,22 +406,10 @@ struct npc_demolitionist_legosoAI : public npc_escortAI, private DialogueHelper void UpdateEscortAI(const uint32 uiDiff) override { DialogueUpdate(uiDiff); - - // Combat check - if (!m_creature->SelectHostileTarget() || !m_creature->GetVictim()) - return; - - // ToDo: research if there are any abilities involved - - DoMeleeAttackIfReady(); + npc_escortAI::UpdateEscortAI(uiDiff); } }; -UnitAI* GetAI_npc_demolitionist_legoso(Creature* pCreature) -{ - return new npc_demolitionist_legosoAI(pCreature); -} - bool QuestAccept_npc_demolitionist_legoso(Player* pPlayer, Creature* pCreature, const Quest* pQuest) { if (pQuest->GetQuestId() == QUEST_ENDING_THEIR_WORLD) @@ -439,7 +427,7 @@ void AddSC_bloodmyst_isle() pNewScript = new Script; pNewScript->Name = "npc_demolitionist_legoso"; - pNewScript->GetAI = &GetAI_npc_demolitionist_legoso; + pNewScript->GetAI = &GetNewAIInstance; pNewScript->pQuestAcceptNPC = &QuestAccept_npc_demolitionist_legoso; pNewScript->RegisterSelf(); }