From 81d6cde257f3e1849809c73de0b73fe177393f3f Mon Sep 17 00:00:00 2001 From: Killyana Date: Sat, 20 Jun 2020 20:35:36 +0200 Subject: Script: Remove npc_avatar_of_martyred converted to SAI Ref https://github.com/TrinityCore/TrinityCore/commit/5924e038d648e2074191ffc322732e875d37c39c (cherry picked from commit 75bc0f6771e6fe744123c1bb865469c585e1d31b) --- .../AuchenaiCrypts/boss_exarch_maladaar.cpp | 52 ---------------------- 1 file changed, 52 deletions(-) (limited to 'src/server') diff --git a/src/server/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_exarch_maladaar.cpp b/src/server/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_exarch_maladaar.cpp index c48f75a428e..6e7da3c1181 100644 --- a/src/server/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_exarch_maladaar.cpp +++ b/src/server/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_exarch_maladaar.cpp @@ -25,7 +25,6 @@ EndScriptData */ /* ContentData npc_stolen_soul boss_exarch_maladaar -npc_avatar_of_martyred EndContentData */ #include "ScriptMgr.h" @@ -313,59 +312,8 @@ public: }; -class npc_avatar_of_martyred : public CreatureScript -{ -public: - npc_avatar_of_martyred() : CreatureScript("npc_avatar_of_martyred") { } - - CreatureAI* GetAI(Creature* creature) const override - { - return GetAuchenaiCryptsAI(creature); - } - - struct npc_avatar_of_martyredAI : public ScriptedAI - { - npc_avatar_of_martyredAI(Creature* creature) : ScriptedAI(creature) - { - Initialize(); - } - - void Initialize() - { - Mortal_Strike_timer = 10000; - } - - uint32 Mortal_Strike_timer; - - void Reset() override - { - Initialize(); - } - - void JustEngagedWith(Unit* /*who*/) override - { - } - - void UpdateAI(uint32 diff) override - { - if (!UpdateVictim()) - return; - - if (Mortal_Strike_timer <= diff) - { - DoCastVictim(SPELL_AV_MORTAL_STRIKE); - Mortal_Strike_timer = urand(10, 30) * 1000; - } else Mortal_Strike_timer -= diff; - - DoMeleeAttackIfReady(); - } - }; - -}; - void AddSC_boss_exarch_maladaar() { new boss_exarch_maladaar(); - new npc_avatar_of_martyred(); new npc_stolen_soul(); } -- cgit v1.2.3