mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user