aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKillyana <morphone1@gmail.com>2020-06-20 20:35:36 +0200
committerKillyana <morphone1@gmail.com>2020-06-20 20:35:36 +0200
commit75bc0f6771e6fe744123c1bb865469c585e1d31b (patch)
tree2e799f9e527e2b3733f67409c32209a74562ae96 /src
parent5924e038d648e2074191ffc322732e875d37c39c (diff)
Script: Remove npc_avatar_of_martyred converted to SAI
Ref https://github.com/TrinityCore/TrinityCore/commit/5924e038d648e2074191ffc322732e875d37c39c
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Outland/Auchindoun/AuchenaiCrypts/boss_exarch_maladaar.cpp52
1 files changed, 0 insertions, 52 deletions
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<npc_avatar_of_martyredAI>(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();
}