Skip to content

Commit

Permalink
Bloodmyst: Enable legoso support for spell lists
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Sep 24, 2023
1 parent 928bf34 commit ffc0ebc
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/game/AI/ScriptDevAI/scripts/kalimdor/bloodmyst_isle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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<npc_demolitionist_legosoAI>;
pNewScript->pQuestAcceptNPC = &QuestAccept_npc_demolitionist_legoso;
pNewScript->RegisterSelf();
}

0 comments on commit ffc0ebc

Please sign in to comment.