mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 17:05:44 +01:00
DB/Instance/The Eye: Overhaul part 2
(cherry picked from commit 6ad76dd7c0)
This commit is contained in:
@@ -169,6 +169,7 @@ class boss_high_astromancer_solarian : public CreatureScript
|
||||
{
|
||||
Talk(SAY_AGGRO);
|
||||
BossAI::JustEngagedWith(who);
|
||||
me->CallForHelp(120.0f);
|
||||
}
|
||||
|
||||
void SummonMinion(uint32 entry, float x, float y, float z)
|
||||
|
||||
@@ -82,6 +82,7 @@ class boss_void_reaver : public CreatureScript
|
||||
{
|
||||
Talk(SAY_AGGRO);
|
||||
BossAI::JustEngagedWith(who);
|
||||
me->CallForHelp(120.0f);
|
||||
|
||||
events.ScheduleEvent(EVENT_POUNDING, 15s);
|
||||
events.ScheduleEvent(EVENT_ARCANE_ORB, 3s);
|
||||
|
||||
@@ -1,113 +0,0 @@
|
||||
/*
|
||||
* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/* ScriptData
|
||||
SDName: The_Eye
|
||||
SD%Complete: 100
|
||||
SDComment:
|
||||
SDCategory: Tempest Keep, The Eye
|
||||
EndScriptData */
|
||||
|
||||
/* ContentData
|
||||
npc_crystalcore_devastator
|
||||
EndContentData */
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "the_eye.h"
|
||||
|
||||
enum Spells
|
||||
{
|
||||
SPELL_COUNTERCHARGE = 35035,
|
||||
SPELL_KNOCKAWAY = 22893,
|
||||
};
|
||||
|
||||
class npc_crystalcore_devastator : public CreatureScript
|
||||
{
|
||||
public:
|
||||
|
||||
npc_crystalcore_devastator()
|
||||
: CreatureScript("npc_crystalcore_devastator")
|
||||
{
|
||||
}
|
||||
struct npc_crystalcore_devastatorAI : public ScriptedAI
|
||||
{
|
||||
npc_crystalcore_devastatorAI(Creature* creature) : ScriptedAI(creature)
|
||||
{
|
||||
Initialize();
|
||||
}
|
||||
|
||||
void Initialize()
|
||||
{
|
||||
Countercharge_Timer = 9000;
|
||||
Knockaway_Timer = 25000;
|
||||
}
|
||||
|
||||
uint32 Knockaway_Timer;
|
||||
uint32 Countercharge_Timer;
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
Initialize();
|
||||
}
|
||||
|
||||
void JustEngagedWith(Unit* /*who*/) override
|
||||
{
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
//Check if we have a current target
|
||||
//Knockaway_Timer
|
||||
if (Knockaway_Timer <= diff)
|
||||
{
|
||||
if (Unit* victim = me->GetVictim())
|
||||
{
|
||||
DoCastVictim(SPELL_KNOCKAWAY, true);
|
||||
me->GetThreatManager().ResetThreat(victim);
|
||||
}
|
||||
|
||||
Knockaway_Timer = 23000;
|
||||
}
|
||||
else
|
||||
Knockaway_Timer -= diff;
|
||||
|
||||
//Countercharge_Timer
|
||||
if (Countercharge_Timer <= diff)
|
||||
{
|
||||
DoCast(me, SPELL_COUNTERCHARGE);
|
||||
Countercharge_Timer = 45000;
|
||||
}
|
||||
else
|
||||
Countercharge_Timer -= diff;
|
||||
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
};
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return GetTheEyeAI<npc_crystalcore_devastatorAI>(creature);
|
||||
}
|
||||
};
|
||||
void AddSC_the_eye()
|
||||
{
|
||||
new npc_crystalcore_devastator();
|
||||
}
|
||||
@@ -116,7 +116,7 @@ void AddSC_boss_kaelthas();
|
||||
void AddSC_boss_void_reaver();
|
||||
void AddSC_boss_high_astromancer_solarian();
|
||||
void AddSC_instance_the_eye();
|
||||
void AddSC_the_eye();
|
||||
// void AddSC_the_eye();
|
||||
void AddSC_boss_gatewatcher_iron_hand(); //TK The Mechanar
|
||||
void AddSC_boss_gatewatcher_gyrokill();
|
||||
void AddSC_boss_nethermancer_sepethrea();
|
||||
@@ -239,7 +239,7 @@ void AddOutlandScripts()
|
||||
AddSC_boss_void_reaver();
|
||||
AddSC_boss_high_astromancer_solarian();
|
||||
AddSC_instance_the_eye();
|
||||
AddSC_the_eye();
|
||||
// AddSC_the_eye();
|
||||
AddSC_boss_gatewatcher_iron_hand(); //TK The Mechanar
|
||||
AddSC_boss_gatewatcher_gyrokill();
|
||||
AddSC_boss_nethermancer_sepethrea();
|
||||
|
||||
Reference in New Issue
Block a user