aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Outland/TempestKeep
diff options
context:
space:
mode:
authorNay <dnpd.dd@gmail.com>2013-07-14 16:10:20 +0100
committerNay <dnpd.dd@gmail.com>2013-07-14 16:10:20 +0100
commitb56b282eeeba5e21bc256c2ce2ff27edef5f08d9 (patch)
tree4cddec28bf8323dce18e451bf038c2bba6071c6b /src/server/scripts/Outland/TempestKeep
parentf8ba2c066bc3dacafa98556aeabbfab04fc5f583 (diff)
parentbedb2e56e2ca35ad6790c2ef2c736a88b8f1fb16 (diff)
Merge remote-tracking branch 'origin/master' into 4.3.4
Conflicts: src/server/game/Entities/Creature/GossipDef.cpp src/server/game/Entities/Player/Player.cpp src/server/game/Entities/Player/Player.h src/server/game/Handlers/QuestHandler.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_akilzon.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_halazzi.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_hexlord.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_janalai.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_nalorakk.cpp src/server/scripts/EasternKingdoms/ZulAman/boss_zuljin.cpp src/server/scripts/EasternKingdoms/ZulAman/instance_zulaman.cpp src/server/scripts/EasternKingdoms/ZulAman/zulaman.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_arlokk.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_grilek.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_hakkar.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_hazzarah.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_jeklik.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_jindo.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_kilnara.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_mandokir.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_marli.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_renataki.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_thekal.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_venoxis.cpp src/server/scripts/EasternKingdoms/ZulGurub/boss_wushoolay.cpp src/server/scripts/EasternKingdoms/ZulGurub/instance_zulgurub.cpp src/server/scripts/EasternKingdoms/boss_kruul.cpp src/server/scripts/EasternKingdoms/zone_arathi_highlands.cpp src/server/scripts/EasternKingdoms/zone_burning_steppes.cpp src/server/scripts/EasternKingdoms/zone_ghostlands.cpp src/server/scripts/EasternKingdoms/zone_hinterlands.cpp src/server/scripts/EasternKingdoms/zone_ironforge.cpp src/server/scripts/EasternKingdoms/zone_loch_modan.cpp src/server/scripts/EasternKingdoms/zone_redridge_mountains.cpp src/server/scripts/EasternKingdoms/zone_silverpine_forest.cpp src/server/scripts/EasternKingdoms/zone_stormwind_city.cpp src/server/scripts/EasternKingdoms/zone_swamp_of_sorrows.cpp src/server/scripts/EasternKingdoms/zone_tirisfal_glades.cpp src/server/scripts/Kalimdor/zone_azshara.cpp src/server/scripts/Kalimdor/zone_darkshore.cpp src/server/scripts/Kalimdor/zone_desolace.cpp src/server/scripts/Kalimdor/zone_durotar.cpp src/server/scripts/Kalimdor/zone_felwood.cpp src/server/scripts/Kalimdor/zone_feralas.cpp src/server/scripts/Kalimdor/zone_mulgore.cpp src/server/scripts/Kalimdor/zone_orgrimmar.cpp src/server/scripts/Kalimdor/zone_stonetalon_mountains.cpp src/server/scripts/Kalimdor/zone_tanaris.cpp src/server/scripts/Kalimdor/zone_thousand_needles.cpp src/server/scripts/Kalimdor/zone_thunder_bluff.cpp src/server/scripts/Kalimdor/zone_ungoro_crater.cpp src/server/scripts/Northrend/zone_dalaran.cpp src/server/scripts/OutdoorPvP/OutdoorPvPEP.cpp src/server/scripts/Spells/spell_druid.cpp src/server/scripts/Spells/spell_generic.cpp src/server/scripts/Spells/spell_mage.cpp src/server/scripts/Spells/spell_paladin.cpp src/server/scripts/Spells/spell_priest.cpp src/server/scripts/Spells/spell_shaman.cpp src/server/scripts/Spells/spell_warlock.cpp src/server/scripts/Spells/spell_warrior.cpp src/server/scripts/World/item_scripts.cpp
Diffstat (limited to 'src/server/scripts/Outland/TempestKeep')
-rw-r--r--src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp50
-rw-r--r--src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp57
-rw-r--r--src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp147
-rw-r--r--src/server/scripts/Outland/TempestKeep/Eye/boss_void_reaver.cpp19
-rw-r--r--src/server/scripts/Outland/TempestKeep/Eye/instance_the_eye.cpp8
-rw-r--r--src/server/scripts/Outland/TempestKeep/Eye/the_eye.cpp10
-rw-r--r--src/server/scripts/Outland/TempestKeep/Eye/the_eye.h27
-rw-r--r--src/server/scripts/Outland/TempestKeep/Mechanar/boss_gatewatcher_gyrokill.cpp12
-rw-r--r--src/server/scripts/Outland/TempestKeep/Mechanar/boss_gatewatcher_ironhand.cpp10
-rw-r--r--src/server/scripts/Outland/TempestKeep/Mechanar/boss_mechano_lord_capacitus.cpp22
-rw-r--r--src/server/scripts/Outland/TempestKeep/Mechanar/boss_nethermancer_sepethrea.cpp20
-rw-r--r--src/server/scripts/Outland/TempestKeep/Mechanar/boss_pathaleon_the_calculator.cpp24
-rw-r--r--src/server/scripts/Outland/TempestKeep/Mechanar/instance_mechanar.cpp2
-rw-r--r--src/server/scripts/Outland/TempestKeep/arcatraz/arcatraz.cpp43
-rw-r--r--src/server/scripts/Outland/TempestKeep/arcatraz/arcatraz.h33
-rw-r--r--src/server/scripts/Outland/TempestKeep/arcatraz/boss_harbinger_skyriss.cpp51
-rw-r--r--src/server/scripts/Outland/TempestKeep/arcatraz/instance_arcatraz.cpp10
-rw-r--r--src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp20
-rw-r--r--src/server/scripts/Outland/TempestKeep/botanica/boss_high_botanist_freywinn.cpp25
-rw-r--r--src/server/scripts/Outland/TempestKeep/botanica/boss_laj.cpp14
-rw-r--r--src/server/scripts/Outland/TempestKeep/botanica/boss_thorngrin_the_tender.cpp14
-rw-r--r--src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp31
-rw-r--r--src/server/scripts/Outland/TempestKeep/botanica/instance_the_botanica.cpp4
23 files changed, 349 insertions, 304 deletions
diff --git a/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp b/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp
index 7de32c4bfbd..389634a50bf 100644
--- a/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Eye/boss_alar.cpp
@@ -28,7 +28,7 @@ EndScriptData */
#include "the_eye.h"
#include "SpellInfo.h"
-enum eSpells
+enum Spells
{
SPELL_FLAME_BUFFET = 34121, // Flame Buffet - every 1, 5 secs in phase 1 if there is no victim in melee range and after Dive Bomb in phase 2 with same conditions
SPELL_FLAME_QUILLS = 34229, // Randomly after changing position in phase after watching tons of movies, set probability 20%
@@ -110,7 +110,7 @@ class boss_alar : public CreatureScript
int8 cur_wp;
- void Reset()
+ void Reset() OVERRIDE
{
if (instance)
instance->SetData(DATA_ALAREVENT, NOT_STARTED);
@@ -137,7 +137,7 @@ class boss_alar : public CreatureScript
me->setActive(false);
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
if (instance)
instance->SetData(DATA_ALAREVENT, IN_PROGRESS);
@@ -147,22 +147,23 @@ class boss_alar : public CreatureScript
me->setActive(true);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
if (instance)
instance->SetData(DATA_ALAREVENT, DONE);
}
- void JustSummoned(Creature* summon)
+ void JustSummoned(Creature* summon) OVERRIDE
{
if (summon->GetEntry() == CREATURE_EMBER_OF_ALAR)
if (Unit* target = SelectTarget(SELECT_TARGET_RANDOM, 0))
summon->AI()->AttackStart(target);
}
- void MoveInLineOfSight(Unit* /*who*/) {}
+ void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
- void AttackStart(Unit* who)
+
+ void AttackStart(Unit* who) OVERRIDE
{
if (Phase1)
AttackStartNoMove(who);
@@ -170,7 +171,7 @@ class boss_alar : public CreatureScript
ScriptedAI::AttackStart(who);
}
- void DamageTaken(Unit* /*killer*/, uint32 &damage)
+ void DamageTaken(Unit* /*killer*/, uint32 &damage) OVERRIDE
{
if (damage >= me->GetHealth() && Phase1)
{
@@ -192,7 +193,7 @@ class boss_alar : public CreatureScript
}
}
- void SpellHit(Unit*, const SpellInfo* spell)
+ void SpellHit(Unit*, const SpellInfo* spell) OVERRIDE
{
if (spell->Id == SPELL_DIVE_BOMB_VISUAL)
{
@@ -202,7 +203,7 @@ class boss_alar : public CreatureScript
}
}
- void MovementInform(uint32 type, uint32 /*id*/)
+ void MovementInform(uint32 type, uint32 /*id*/) OVERRIDE
{
if (type == POINT_MOTION_TYPE)
{
@@ -212,7 +213,7 @@ class boss_alar : public CreatureScript
}
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!me->IsInCombat()) // sometimes IsInCombat but !incombat, faction bug?
return;
@@ -452,7 +453,7 @@ class boss_alar : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_alarAI(creature);
}
@@ -479,20 +480,20 @@ class npc_ember_of_alar : public CreatureScript
InstanceScript* instance;
bool toDie;
- void Reset()
+ void Reset() OVERRIDE
{
toDie = false;
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
DoZoneInCombat();
}
- void EnterEvadeMode()
+ void EnterEvadeMode() OVERRIDE
{
me->setDeathState(JUST_DIED);
}
- void DamageTaken(Unit* killer, uint32 &damage)
+ void DamageTaken(Unit* killer, uint32 &damage) OVERRIDE
{
if (damage >= me->GetHealth() && killer != me && !toDie)
{
@@ -515,7 +516,7 @@ class npc_ember_of_alar : public CreatureScript
}
}
- void UpdateAI(uint32 /*diff*/)
+ void UpdateAI(uint32 /*diff*/) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -531,7 +532,7 @@ class npc_ember_of_alar : public CreatureScript
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_ember_of_alarAI(creature);
}
@@ -549,14 +550,15 @@ class npc_flame_patch_alar : public CreatureScript
struct npc_flame_patch_alarAI : public ScriptedAI
{
npc_flame_patch_alarAI(Creature* creature) : ScriptedAI(creature) {}
- void Reset() {}
- void EnterCombat(Unit* /*who*/) {}
- void AttackStart(Unit* /*who*/) {}
- void MoveInLineOfSight(Unit* /*who*/) {}
- void UpdateAI(uint32 /*diff*/) {}
+ void Reset() OVERRIDE {}
+ void EnterCombat(Unit* /*who*/) OVERRIDE {}
+ void AttackStart(Unit* /*who*/) OVERRIDE {}
+ void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
+
+ void UpdateAI(uint32 /*diff*/) OVERRIDE {}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_flame_patch_alarAI(creature);
}
diff --git a/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp b/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp
index a7f19aad871..597cccda102 100644
--- a/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Eye/boss_astromancer.cpp
@@ -30,7 +30,7 @@ EndScriptData */
#include "the_eye.h"
-enum eEnums
+enum Yells
{
SAY_AGGRO = 0,
SAY_SUMMON1 = 1,
@@ -38,8 +38,11 @@ enum eEnums
SAY_KILL = 3,
SAY_DEATH = 4,
SAY_VOIDA = 5,
- SAY_VOIDB = 6,
+ SAY_VOIDB = 6
+};
+enum Spells
+{
SPELL_ARCANE_MISSILES = 33031,
SPELL_WRATH_OF_THE_ASTROMANCER = 42783,
SPELL_WRATH_OF_THE_ASTROMANCER_DOT = 42784,
@@ -48,18 +51,28 @@ enum eEnums
SPELL_VOID_BOLT = 39329,
SPELL_SPOTLIGHT = 25824,
+
+ SPELL_SOLARIUM_GREAT_HEAL = 33387,
+ SPELL_SOLARIUM_HOLY_SMITE = 25054,
+ SPELL_SOLARIUM_ARCANE_TORRENT = 33390
+};
+
+enum Creatures
+{
NPC_ASTROMANCER_SOLARIAN_SPOTLIGHT = 18928,
NPC_SOLARIUM_AGENT = 18925,
- NPC_SOLARIUM_PRIEST = 18806,
+ NPC_SOLARIUM_PRIEST = 18806
+};
+enum Models
+{
MODEL_HUMAN = 18239,
- MODEL_VOIDWALKER = 18988,
-
- SPELL_SOLARIUM_GREAT_HEAL = 33387,
- SPELL_SOLARIUM_HOLY_SMITE = 25054,
- SPELL_SOLARIUM_ARCANE_TORRENT = 33390,
+ MODEL_VOIDWALKER = 18988
+};
+enum Misc
+{
WV_ARMOR = 31000
};
@@ -117,7 +130,7 @@ class boss_high_astromancer_solarian : public CreatureScript
bool AppearDelay;
bool BlindingLight;
- void Reset()
+ void Reset() OVERRIDE
{
ArcaneMissiles_Timer = 2000;
m_uiWrathOfTheAstromancer_Timer = 15000;
@@ -145,12 +158,12 @@ class boss_high_astromancer_solarian : public CreatureScript
Summons.DespawnAll();
}
- void KilledUnit(Unit* /*victim*/)
+ void KilledUnit(Unit* /*victim*/) OVERRIDE
{
Talk(SAY_KILL);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
me->SetObjectScale(defaultsize);
me->SetDisplayId(MODEL_HUMAN);
@@ -159,7 +172,7 @@ class boss_high_astromancer_solarian : public CreatureScript
instance->SetData(DATA_HIGHASTROMANCERSOLARIANEVENT, DONE);
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
Talk(SAY_AGGRO);
DoZoneInCombat();
@@ -195,7 +208,7 @@ class boss_high_astromancer_solarian : public CreatureScript
return (z*sqrt(radius*radius - (x - CENTER_X)*(x - CENTER_X)) + CENTER_Y);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -404,9 +417,9 @@ class boss_high_astromancer_solarian : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
- return new boss_high_astromancer_solarianAI (creature);
+ return new boss_high_astromancer_solarianAI(creature);
}
};
@@ -432,18 +445,18 @@ class npc_solarium_priest : public CreatureScript
uint32 holysmiteTimer;
uint32 aoesilenceTimer;
- void Reset()
+ void Reset() OVERRIDE
{
healTimer = 9000;
holysmiteTimer = 1;
aoesilenceTimer = 15000;
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -491,7 +504,7 @@ class npc_solarium_priest : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_solarium_priestAI(creature);
}
@@ -506,7 +519,7 @@ class spell_astromancer_wrath_of_the_astromancer : public SpellScriptLoader
{
PrepareAuraScript(spell_astromancer_wrath_of_the_astromancer_AuraScript);
- bool Validate(SpellInfo const* /*SpellEntry*/)
+ bool Validate(SpellInfo const* /*SpellEntry*/) OVERRIDE
{
if (!sSpellMgr->GetSpellInfo(SPELL_WRATH_OF_THE_ASTROMANCER_DOT))
return false;
@@ -523,13 +536,13 @@ class spell_astromancer_wrath_of_the_astromancer : public SpellScriptLoader
target->CastSpell(target, GetSpellInfo()->Effects[EFFECT_1].CalcValue(), false);
}
- void Register()
+ void Register() OVERRIDE
{
AfterEffectRemove += AuraEffectRemoveFn(spell_astromancer_wrath_of_the_astromancer_AuraScript::AfterRemove, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL, AURA_EFFECT_HANDLE_REAL);
}
};
- AuraScript* GetAuraScript() const
+ AuraScript* GetAuraScript() const OVERRIDE
{
return new spell_astromancer_wrath_of_the_astromancer_AuraScript();
}
diff --git a/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp b/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp
index a5923d86ff8..cf25efb17c6 100644
--- a/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Eye/boss_kaelthas.cpp
@@ -29,9 +29,9 @@ EndScriptData */
#include "WorldPacket.h"
#include "Opcodes.h"
-enum eEnums
+enum Yells
{
- //kael'thas Speech
+ // Kael'thas Speech
SAY_INTRO = 0,
SAY_INTRO_CAPERNIAN = 1,
SAY_INTRO_TELONICUS = 2,
@@ -47,7 +47,7 @@ enum eEnums
SAY_SUMMON_PHOENIX = 12,
SAY_DEATH = 13,
- //Thaladred the Darkener speech
+ // Thaladred the Darkener speech
SAY_THALADRED_AGGRO = 0,
SAY_THALADRED_DEATH = 1,
EMOTE_THALADRED_GAZE = 2,
@@ -56,15 +56,18 @@ enum eEnums
SAY_SANGUINAR_AGGRO = 0,
SAY_SANGUINAR_DEATH = 1,
- //Grand Astromancer Capernian speech
+ // Grand Astromancer Capernian speech
SAY_CAPERNIAN_AGGRO = 0,
SAY_CAPERNIAN_DEATH = 1,
- //Master Engineer Telonicus speech
+ // Master Engineer Telonicus speech
SAY_TELONICUS_AGGRO = 0,
- SAY_TELONICUS_DEATH = 1,
+ SAY_TELONICUS_DEATH = 1
+};
- //Phase 2 spells
+enum Spells
+{
+ // Phase 2 spells
SPELL_SUMMON_WEAPONS = 36976,
SPELL_SUMMON_WEAPONA = 36958,
SPELL_SUMMON_WEAPONB = 36959,
@@ -75,7 +78,7 @@ enum eEnums
SPELL_SUMMON_WEAPONG = 36964,
SPELL_RES_VISUAL = 24171,
- //Phase 4 spells
+ // Phase 4 spells
SPELL_FIREBALL = 22088, //wrong but works with CastCustomSpell
SPELL_PYROBLAST = 36819,
SPELL_FLAME_STRIKE = 36735,
@@ -86,7 +89,7 @@ enum eEnums
SPELL_PHOENIX_ANIMATION = 36723,
SPELL_MIND_CONTROL = 32830,
- //Phase 5 spells
+ // Phase 5 spells
SPELL_EXPLODE = 36092,
SPELL_FULLPOWER = 36187,
SPELL_KNOCKBACK = 11027,
@@ -94,12 +97,12 @@ enum eEnums
SPELL_GRAVITY_LAPSE_AURA = 39432,
SPELL_NETHER_BEAM = 35873,
- //Thaladred the Darkener spells
+ // Thaladred the Darkener spells
SPELL_PSYCHIC_BLOW = 10689,
SPELL_SILENCE = 30225,
- //Lord Sanguinar spells
+ // Lord Sanguinar spells
SPELL_BELLOWING_ROAR = 40636,
- //Grand Astromancer Capernian spells
+ // Grand Astromancer Capernian spells
SPELL_CAPERNIAN_FIREBALL = 36971,
SPELL_CONFLAGRATION = 37018,
@@ -112,16 +115,24 @@ enum eEnums
//Phoenix spell
SPELL_BURN = 36720,
SPELL_EMBER_BLAST = 34341,
- SPELL_REBIRTH = 41587,
+ SPELL_REBIRTH = 41587
+};
- //Creature IDs
+enum Creatures
+{
NPC_PHOENIX = 21362,
- NPC_PHOENIX_EGG = 21364,
+ NPC_PHOENIX_EGG = 21364
+};
+enum Models
+{
//Phoenix egg and phoenix model
MODEL_ID_PHOENIX = 19682,
- MODEL_ID_PHOENIX_EGG = 20245,
+ MODEL_ID_PHOENIX_EGG = 20245
+};
+enum Misc
+{
MAX_ADVISORS = 4
};
@@ -154,7 +165,7 @@ struct advisorbase_ai : public ScriptedAI
uint32 DelayRes_Timer;
uint64 DelayRes_Target;
- void Reset()
+ void Reset() OVERRIDE
{
if (m_bDoubled_Health)
{
@@ -176,7 +187,8 @@ struct advisorbase_ai : public ScriptedAI
Kaelthas->AI()->EnterEvadeMode();
}
- void MoveInLineOfSight(Unit* who)
+ void MoveInLineOfSight(Unit* who) OVERRIDE
+
{
if (!who || FakeDeath || me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE))
return;
@@ -184,7 +196,7 @@ struct advisorbase_ai : public ScriptedAI
ScriptedAI::MoveInLineOfSight(who);
}
- void AttackStart(Unit* who)
+ void AttackStart(Unit* who) OVERRIDE
{
if (!who || FakeDeath || me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE))
return;
@@ -205,7 +217,7 @@ struct advisorbase_ai : public ScriptedAI
DelayRes_Timer = 2000;
}
- void DamageTaken(Unit* killer, uint32 &damage)
+ void DamageTaken(Unit* killer, uint32 &damage) OVERRIDE
{
if (damage < me->GetHealth())
return;
@@ -241,7 +253,7 @@ struct advisorbase_ai : public ScriptedAI
}
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (DelayRes_Timer)
{
@@ -306,7 +318,7 @@ class boss_kaelthas : public CreatureScript
uint64 m_auiAdvisorGuid[MAX_ADVISORS];
- void Reset()
+ void Reset() OVERRIDE
{
Fireball_Timer = 5000+rand()%10000;
ArcaneDisruption_Timer = 45000;
@@ -391,7 +403,8 @@ class boss_kaelthas : public CreatureScript
}
}
- void MoveInLineOfSight(Unit* who)
+ void MoveInLineOfSight(Unit* who) OVERRIDE
+
{
if (!me->HasUnitState(UNIT_STATE_STUNNED) && me->CanCreatureAttack(who))
{
@@ -418,18 +431,18 @@ class boss_kaelthas : public CreatureScript
}
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
if (instance && !instance->GetData(DATA_KAELTHASEVENT) && !Phase)
StartEvent();
}
- void KilledUnit(Unit* /*victim*/)
+ void KilledUnit(Unit* /*victim*/) OVERRIDE
{
Talk(SAY_SLAY);
}
- void JustSummoned(Creature* summoned)
+ void JustSummoned(Creature* summoned) OVERRIDE
{
// if not phoenix, then it's one of the 7 weapons
if (summoned->GetEntry() != NPC_PHOENIX)
@@ -441,12 +454,12 @@ class boss_kaelthas : public CreatureScript
}
}
- void SummonedCreatureDespawn(Creature* summon)
+ void SummonedCreatureDespawn(Creature* summon) OVERRIDE
{
summons.Despawn(summon);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
@@ -465,7 +478,7 @@ class boss_kaelthas : public CreatureScript
}
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
//Phase 1
switch (Phase)
@@ -996,7 +1009,7 @@ class boss_kaelthas : public CreatureScript
}
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_kaelthasAI(creature);
}
@@ -1019,7 +1032,7 @@ class boss_thaladred_the_darkener : public CreatureScript
uint32 Silence_Timer;
uint32 PsychicBlow_Timer;
- void Reset()
+ void Reset() OVERRIDE
{
Gaze_Timer = 100;
Silence_Timer = 20000;
@@ -1028,7 +1041,7 @@ class boss_thaladred_the_darkener : public CreatureScript
advisorbase_ai::Reset();
}
- void EnterCombat(Unit* who)
+ void EnterCombat(Unit* who) OVERRIDE
{
if (me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE))
return;
@@ -1040,13 +1053,13 @@ class boss_thaladred_the_darkener : public CreatureScript
me->AddThreat(who, 5000000.0f);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
if (instance && instance->GetData(DATA_KAELTHASEVENT) == 3)
Talk(SAY_THALADRED_DEATH);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
advisorbase_ai::UpdateAI(diff);
@@ -1094,7 +1107,7 @@ class boss_thaladred_the_darkener : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_thaladred_the_darkenerAI(creature);
}
@@ -1115,13 +1128,13 @@ class boss_lord_sanguinar : public CreatureScript
uint32 Fear_Timer;
- void Reset()
+ void Reset() OVERRIDE
{
Fear_Timer = 20000;
advisorbase_ai::Reset();
}
- void EnterCombat(Unit* who)
+ void EnterCombat(Unit* who) OVERRIDE
{
if (me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE))
return;
@@ -1132,13 +1145,13 @@ class boss_lord_sanguinar : public CreatureScript
Talk(SAY_SANGUINAR_AGGRO);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
if (instance && instance->GetData(DATA_KAELTHASEVENT) == 3)
Talk(SAY_SANGUINAR_DEATH);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
advisorbase_ai::UpdateAI(diff);
@@ -1162,7 +1175,7 @@ class boss_lord_sanguinar : public CreatureScript
DoMeleeAttackIfReady();
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_lord_sanguinarAI(creature);
}
@@ -1186,7 +1199,7 @@ class boss_grand_astromancer_capernian : public CreatureScript
uint32 Yell_Timer;
bool Yell;
- void Reset()
+ void Reset() OVERRIDE
{
Fireball_Timer = 2000;
Conflagration_Timer = 20000;
@@ -1197,13 +1210,13 @@ class boss_grand_astromancer_capernian : public CreatureScript
advisorbase_ai::Reset();
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
if (instance && instance->GetData(DATA_KAELTHASEVENT) == 3)
Talk(SAY_CAPERNIAN_DEATH);
}
- void AttackStart(Unit* who)
+ void AttackStart(Unit* who) OVERRIDE
{
if (!who || FakeDeath || me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE))
return;
@@ -1218,7 +1231,7 @@ class boss_grand_astromancer_capernian : public CreatureScript
}
}
- void EnterCombat(Unit* who)
+ void EnterCombat(Unit* who) OVERRIDE
{
if (me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE))
return;
@@ -1227,7 +1240,7 @@ class boss_grand_astromancer_capernian : public CreatureScript
return;
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
advisorbase_ai::UpdateAI(diff);
@@ -1306,7 +1319,7 @@ class boss_grand_astromancer_capernian : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_grand_astromancer_capernianAI(creature);
}
@@ -1328,7 +1341,7 @@ class boss_master_engineer_telonicus : public CreatureScript
uint32 Bomb_Timer;
uint32 RemoteToy_Timer;
- void Reset()
+ void Reset() OVERRIDE
{
Bomb_Timer = 10000;
RemoteToy_Timer = 5000;
@@ -1336,13 +1349,13 @@ class boss_master_engineer_telonicus : public CreatureScript
advisorbase_ai::Reset();
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
if (instance && instance->GetData(DATA_KAELTHASEVENT) == 3)
Talk(SAY_TELONICUS_DEATH);
}
- void EnterCombat(Unit* who)
+ void EnterCombat(Unit* who) OVERRIDE
{
if (me->HasFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE))
return;
@@ -1353,7 +1366,7 @@ class boss_master_engineer_telonicus : public CreatureScript
Talk(SAY_TELONICUS_AGGRO);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
advisorbase_ai::UpdateAI(diff);
@@ -1389,7 +1402,7 @@ class boss_master_engineer_telonicus : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_master_engineer_telonicusAI(creature);
}
@@ -1415,7 +1428,7 @@ class npc_kael_flamestrike : public CreatureScript
bool Casting;
bool KillSelf;
- void Reset()
+ void Reset() OVERRIDE
{
Timer = 5000;
Casting = false;
@@ -1425,11 +1438,12 @@ class npc_kael_flamestrike : public CreatureScript
me->setFaction(14);
}
- void MoveInLineOfSight(Unit* /*who*/) {}
+ void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
+
- void EnterCombat(Unit* /*who*/) {}
+ void EnterCombat(Unit* /*who*/) OVERRIDE {}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!Casting)
{
@@ -1456,7 +1470,7 @@ class npc_kael_flamestrike : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_kael_flamestrikeAI(creature);
}
@@ -1477,20 +1491,20 @@ class npc_phoenix_tk : public CreatureScript
uint32 Cycle_Timer;
- void Reset()
+ void Reset() OVERRIDE
{
Cycle_Timer = 2000;
DoCast(me, SPELL_BURN, true);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
//is this spell in use anylonger?
//DoCast(me, SPELL_EMBER_BLAST, true);
me->SummonCreature(NPC_PHOENIX_EGG, me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), me->GetOrientation(), TEMPSUMMON_TIMED_DESPAWN, 16000);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -1510,7 +1524,7 @@ class npc_phoenix_tk : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_phoenix_tkAI(creature);
}
@@ -1531,15 +1545,16 @@ class npc_phoenix_egg_tk : public CreatureScript
uint32 Rebirth_Timer;
- void Reset()
+ void Reset() OVERRIDE
{
Rebirth_Timer = 15000;
}
//ignore any
- void MoveInLineOfSight(Unit* /*who*/) {}
+ void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
+
- void AttackStart(Unit* who)
+ void AttackStart(Unit* who) OVERRIDE
{
if (me->Attack(who, false))
{
@@ -1550,13 +1565,13 @@ class npc_phoenix_egg_tk : public CreatureScript
}
}
- void JustSummoned(Creature* summoned)
+ void JustSummoned(Creature* summoned) OVERRIDE
{
summoned->AddThreat(me->GetVictim(), 0.0f);
summoned->CastSpell(summoned, SPELL_REBIRTH, false);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!Rebirth_Timer)
return;
@@ -1571,7 +1586,7 @@ class npc_phoenix_egg_tk : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_phoenix_egg_tkAI(creature);
}
diff --git a/src/server/scripts/Outland/TempestKeep/Eye/boss_void_reaver.cpp b/src/server/scripts/Outland/TempestKeep/Eye/boss_void_reaver.cpp
index 26668a77742..f842ed19f3c 100644
--- a/src/server/scripts/Outland/TempestKeep/Eye/boss_void_reaver.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Eye/boss_void_reaver.cpp
@@ -27,13 +27,16 @@ EndScriptData */
#include "ScriptedCreature.h"
#include "the_eye.h"
-enum eEnums
+enum Yells
{
SAY_AGGRO = 0,
SAY_SLAY = 1,
SAY_DEATH = 2,
- SAY_POUNDING = 3,
+ SAY_POUNDING = 3
+};
+enum Spells
+{
SPELL_POUNDING = 34162,
SPELL_ARCANE_ORB = 34172,
SPELL_KNOCK_AWAY = 25778,
@@ -65,7 +68,7 @@ class boss_void_reaver : public CreatureScript
bool Enraged;
- void Reset()
+ void Reset() OVERRIDE
{
Pounding_Timer = 15000;
ArcaneOrb_Timer = 3000;
@@ -78,12 +81,12 @@ class boss_void_reaver : public CreatureScript
instance->SetData(DATA_VOIDREAVEREVENT, NOT_STARTED);
}
- void KilledUnit(Unit* /*victim*/)
+ void KilledUnit(Unit* /*victim*/) OVERRIDE
{
Talk(SAY_SLAY);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
Talk(SAY_DEATH);
DoZoneInCombat();
@@ -92,7 +95,7 @@ class boss_void_reaver : public CreatureScript
instance->SetData(DATA_VOIDREAVEREVENT, DONE);
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
Talk(SAY_AGGRO);
@@ -100,7 +103,7 @@ class boss_void_reaver : public CreatureScript
instance->SetData(DATA_VOIDREAVEREVENT, IN_PROGRESS);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -167,7 +170,7 @@ class boss_void_reaver : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_void_reaverAI(creature);
}
diff --git a/src/server/scripts/Outland/TempestKeep/Eye/instance_the_eye.cpp b/src/server/scripts/Outland/TempestKeep/Eye/instance_the_eye.cpp
index e43d2f9b13a..e47995befff 100644
--- a/src/server/scripts/Outland/TempestKeep/Eye/instance_the_eye.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Eye/instance_the_eye.cpp
@@ -113,7 +113,7 @@ class instance_the_eye : public InstanceMapScript
}
}
- uint64 GetData64(uint32 identifier) const
+ uint64 GetData64(uint32 identifier) const OVERRIDE
{
switch (identifier)
{
@@ -128,7 +128,7 @@ class instance_the_eye : public InstanceMapScript
return 0;
}
- void SetData(uint32 type, uint32 data)
+ void SetData(uint32 type, uint32 data) OVERRIDE
{
switch (type)
{
@@ -151,7 +151,7 @@ class instance_the_eye : public InstanceMapScript
SaveToDB();
}
- uint32 GetData(uint32 type) const
+ uint32 GetData(uint32 type) const OVERRIDE
{
switch (type)
{
@@ -192,7 +192,7 @@ class instance_the_eye : public InstanceMapScript
}
};
- InstanceScript* GetInstanceScript(InstanceMap* map) const
+ InstanceScript* GetInstanceScript(InstanceMap* map) const OVERRIDE
{
return new instance_the_eye_InstanceMapScript(map);
}
diff --git a/src/server/scripts/Outland/TempestKeep/Eye/the_eye.cpp b/src/server/scripts/Outland/TempestKeep/Eye/the_eye.cpp
index 3fb42ced19f..ab9b6ab3046 100644
--- a/src/server/scripts/Outland/TempestKeep/Eye/the_eye.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Eye/the_eye.cpp
@@ -31,7 +31,7 @@ EndContentData */
#include "ScriptedCreature.h"
#include "the_eye.h"
-enum eSpells
+enum Spells
{
SPELL_COUNTERCHARGE = 35035,
SPELL_KNOCKAWAY = 22893,
@@ -52,17 +52,17 @@ class npc_crystalcore_devastator : public CreatureScript
uint32 Knockaway_Timer;
uint32 Countercharge_Timer;
- void Reset()
+ void Reset() OVERRIDE
{
Countercharge_Timer = 9000;
Knockaway_Timer = 25000;
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -100,7 +100,7 @@ class npc_crystalcore_devastator : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_crystalcore_devastatorAI(creature);
}
diff --git a/src/server/scripts/Outland/TempestKeep/Eye/the_eye.h b/src/server/scripts/Outland/TempestKeep/Eye/the_eye.h
index 20b920a95d2..b9e44aff0a9 100644
--- a/src/server/scripts/Outland/TempestKeep/Eye/the_eye.h
+++ b/src/server/scripts/Outland/TempestKeep/Eye/the_eye.h
@@ -19,16 +19,19 @@
#ifndef DEF_THE_EYE_H
#define DEF_THE_EYE_H
-#define DATA_ALAREVENT 1
-#define DATA_ASTROMANCER 2
-#define DATA_GRANDASTROMANCERCAPERNIAN 3
-#define DATA_HIGHASTROMANCERSOLARIANEVENT 4
-#define DATA_KAELTHAS 5
-#define DATA_KAELTHASEVENT 6
-#define DATA_LORDSANGUINAR 7
-#define DATA_MASTERENGINEERTELONICUS 8
-#define DATA_THALADREDTHEDARKENER 10
-#define DATA_VOIDREAVEREVENT 11
-#define DATA_ALAR 12
-#endif
+enum DataTypes
+{
+ DATA_ALAREVENT = 1,
+ DATA_ASTROMANCER = 2,
+ DATA_GRANDASTROMANCERCAPERNIAN = 3,
+ DATA_HIGHASTROMANCERSOLARIANEVENT = 4,
+ DATA_KAELTHAS = 5,
+ DATA_KAELTHASEVENT = 6,
+ DATA_LORDSANGUINAR = 7,
+ DATA_MASTERENGINEERTELONICUS = 8,
+ DATA_THALADREDTHEDARKENER = 10,
+ DATA_VOIDREAVEREVENT = 11,
+ DATA_ALAR = 12
+};
+#endif
diff --git a/src/server/scripts/Outland/TempestKeep/Mechanar/boss_gatewatcher_gyrokill.cpp b/src/server/scripts/Outland/TempestKeep/Mechanar/boss_gatewatcher_gyrokill.cpp
index 18ea83f7121..a2c6ba399a3 100644
--- a/src/server/scripts/Outland/TempestKeep/Mechanar/boss_gatewatcher_gyrokill.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Mechanar/boss_gatewatcher_gyrokill.cpp
@@ -59,13 +59,13 @@ class boss_gatewatcher_gyrokill : public CreatureScript
{
boss_gatewatcher_gyrokillAI(Creature* creature) : BossAI(creature, DATA_GATEWATCHER_GYROKILL) {}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
_JustDied();
Talk(SAY_DEATH);
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
_EnterCombat();
events.ScheduleEvent(EVENT_STREAM_OF_MACHINE_FLUID, 10000);
@@ -74,12 +74,12 @@ class boss_gatewatcher_gyrokill : public CreatureScript
Talk(SAY_AGGRO);
}
- void KilledUnit(Unit* /*victim*/)
+ void KilledUnit(Unit* /*victim*/) OVERRIDE
{
Talk(SAY_SLAY);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -115,9 +115,9 @@ class boss_gatewatcher_gyrokill : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
- return new boss_gatewatcher_gyrokillAI (creature);
+ return new boss_gatewatcher_gyrokillAI(creature);
}
};
diff --git a/src/server/scripts/Outland/TempestKeep/Mechanar/boss_gatewatcher_ironhand.cpp b/src/server/scripts/Outland/TempestKeep/Mechanar/boss_gatewatcher_ironhand.cpp
index 5e29a8d0c31..7dc073d82d7 100644
--- a/src/server/scripts/Outland/TempestKeep/Mechanar/boss_gatewatcher_ironhand.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Mechanar/boss_gatewatcher_ironhand.cpp
@@ -62,7 +62,7 @@ class boss_gatewatcher_iron_hand : public CreatureScript
{
boss_gatewatcher_iron_handAI(Creature* creature) : BossAI(creature, DATA_GATEWATCHER_IRON_HAND) {}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
_EnterCombat();
events.ScheduleEvent(EVENT_STREAM_OF_MACHINE_FLUID, 55000);
@@ -71,19 +71,19 @@ class boss_gatewatcher_iron_hand : public CreatureScript
Talk(SAY_AGGRO);
}
- void KilledUnit(Unit* /*victim*/)
+ void KilledUnit(Unit* /*victim*/) OVERRIDE
{
if (roll_chance_i(50))
Talk(SAY_SLAY);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
_JustDied();
Talk(SAY_DEATH);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -122,7 +122,7 @@ class boss_gatewatcher_iron_hand : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_gatewatcher_iron_handAI(creature);
}
diff --git a/src/server/scripts/Outland/TempestKeep/Mechanar/boss_mechano_lord_capacitus.cpp b/src/server/scripts/Outland/TempestKeep/Mechanar/boss_mechano_lord_capacitus.cpp
index 728b3f715b2..06296ca3ae2 100644
--- a/src/server/scripts/Outland/TempestKeep/Mechanar/boss_mechano_lord_capacitus.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Mechanar/boss_mechano_lord_capacitus.cpp
@@ -75,7 +75,7 @@ class boss_mechano_lord_capacitus : public CreatureScript
{
boss_mechano_lord_capacitusAI(Creature* creature) : BossAI(creature, DATA_MECHANOLORD_CAPACITUS) { }
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
_EnterCombat();
Talk(YELL_AGGRO);
@@ -88,18 +88,18 @@ class boss_mechano_lord_capacitus : public CreatureScript
events.ScheduleEvent(EVENT_POSITIVE_SHIFT, 15 * IN_MILLISECONDS);
}
- void KilledUnit(Unit* /*victim*/)
+ void KilledUnit(Unit* /*victim*/) OVERRIDE
{
Talk(YELL_KILL);
}
- void JustDied(Unit* /*victim*/)
+ void JustDied(Unit* /*victim*/) OVERRIDE
{
_JustDied();
Talk(YELL_DEATH);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -149,7 +149,7 @@ class boss_mechano_lord_capacitus : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_mechano_lord_capacitusAI(creature);
}
@@ -164,7 +164,7 @@ class spell_capacitus_polarity_charge : public SpellScriptLoader
{
PrepareSpellScript(spell_capacitus_polarity_charge_SpellScript);
- bool Validate(SpellInfo const* /*spell*/)
+ bool Validate(SpellInfo const* /*spell*/) OVERRIDE
{
if (!sSpellMgr->GetSpellInfo(SPELL_POSITIVE_CHARGE))
return false;
@@ -210,14 +210,14 @@ class spell_capacitus_polarity_charge : public SpellScriptLoader
SetHitDamage(0);
}
- void Register()
+ void Register() OVERRIDE
{
OnEffectHitTarget += SpellEffectFn(spell_capacitus_polarity_charge_SpellScript::HandleDamage, EFFECT_0, SPELL_EFFECT_SCHOOL_DAMAGE);
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_capacitus_polarity_charge_SpellScript::HandleTargets, EFFECT_0, TARGET_UNIT_SRC_AREA_ALLY);
}
};
- SpellScript* GetSpellScript() const
+ SpellScript* GetSpellScript() const OVERRIDE
{
return new spell_capacitus_polarity_charge_SpellScript();
}
@@ -232,7 +232,7 @@ class spell_capacitus_polarity_shift : public SpellScriptLoader
{
PrepareSpellScript(spell_capacitus_polarity_shift_SpellScript);
- bool Validate(SpellInfo const* /*spell*/)
+ bool Validate(SpellInfo const* /*spell*/) OVERRIDE
{
if (!sSpellMgr->GetSpellInfo(SPELL_POSITIVE_POLARITY) || !sSpellMgr->GetSpellInfo(SPELL_NEGATIVE_POLARITY))
return false;
@@ -247,13 +247,13 @@ class spell_capacitus_polarity_shift : public SpellScriptLoader
target->CastSpell(target, roll_chance_i(50) ? SPELL_POSITIVE_POLARITY : SPELL_NEGATIVE_POLARITY, true, NULL, NULL, caster->GetGUID());
}
- void Register()
+ void Register() OVERRIDE
{
OnEffectHitTarget += SpellEffectFn(spell_capacitus_polarity_shift_SpellScript::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY);
}
};
- SpellScript* GetSpellScript() const
+ SpellScript* GetSpellScript() const OVERRIDE
{
return new spell_capacitus_polarity_shift_SpellScript();
}
diff --git a/src/server/scripts/Outland/TempestKeep/Mechanar/boss_nethermancer_sepethrea.cpp b/src/server/scripts/Outland/TempestKeep/Mechanar/boss_nethermancer_sepethrea.cpp
index fbafe03fddb..565aefbd6b9 100644
--- a/src/server/scripts/Outland/TempestKeep/Mechanar/boss_nethermancer_sepethrea.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Mechanar/boss_nethermancer_sepethrea.cpp
@@ -27,7 +27,7 @@ EndScriptData */
#include "ScriptedCreature.h"
#include "mechanar.h"
-enum eSays
+enum Says
{
SAY_AGGRO = 0,
SAY_SUMMON = 1,
@@ -67,7 +67,7 @@ class boss_nethermancer_sepethrea : public CreatureScript
{
boss_nethermancer_sepethreaAI(Creature* creature) : BossAI(creature, DATA_NETHERMANCER_SEPRETHREA) {}
- void EnterCombat(Unit* who)
+ void EnterCombat(Unit* who) OVERRIDE
{
_EnterCombat();
events.ScheduleEvent(EVENT_FROST_ATTACK, urand(7000, 10000));
@@ -80,18 +80,18 @@ class boss_nethermancer_sepethrea : public CreatureScript
Talk(SAY_SUMMON);
}
- void KilledUnit(Unit* /*victim*/)
+ void KilledUnit(Unit* /*victim*/) OVERRIDE
{
Talk(SAY_SLAY);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
_JustDied();
Talk(SAY_DEATH);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -136,7 +136,7 @@ class boss_nethermancer_sepethrea : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_nethermancer_sepethreaAI(creature);
}
@@ -162,7 +162,7 @@ class npc_ragin_flames : public CreatureScript
bool onlyonce;
- void Reset()
+ void Reset() OVERRIDE
{
inferno_Timer = 10000;
flame_timer = 500;
@@ -173,11 +173,11 @@ class npc_ragin_flames : public CreatureScript
me->SetSpeed(MOVE_RUN, DUNGEON_MODE(0.5f, 0.7f));
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
//Check_Timer
if (Check_Timer <= diff)
@@ -221,7 +221,7 @@ class npc_ragin_flames : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_ragin_flamesAI(creature);
}
diff --git a/src/server/scripts/Outland/TempestKeep/Mechanar/boss_pathaleon_the_calculator.cpp b/src/server/scripts/Outland/TempestKeep/Mechanar/boss_pathaleon_the_calculator.cpp
index adcfff10684..1bcdcd48fce 100644
--- a/src/server/scripts/Outland/TempestKeep/Mechanar/boss_pathaleon_the_calculator.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Mechanar/boss_pathaleon_the_calculator.cpp
@@ -75,7 +75,7 @@ class boss_pathaleon_the_calculator : public CreatureScript
{
boss_pathaleon_the_calculatorAI(Creature* creature) : BossAI(creature, DATA_PATHALEON_THE_CALCULATOR) { }
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
_EnterCombat();
events.ScheduleEvent(EVENT_SUMMON, 30000);
@@ -86,18 +86,18 @@ class boss_pathaleon_the_calculator : public CreatureScript
Talk(SAY_AGGRO);
}
- void KilledUnit(Unit* /*victim*/)
+ void KilledUnit(Unit* /*victim*/) OVERRIDE
{
Talk(SAY_SLAY);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
_JustDied();
Talk(SAY_DEATH);
}
- void DamageTaken(Unit* /*attacker*/, uint32& damage)
+ void DamageTaken(Unit* /*attacker*/, uint32& damage) OVERRIDE
{
if (me->HealthBelowPctDamaged(20, damage) && !me->HasAura(SPELL_FRENZY))
{
@@ -106,7 +106,7 @@ class boss_pathaleon_the_calculator : public CreatureScript
}
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -158,9 +158,9 @@ class boss_pathaleon_the_calculator : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
- return new boss_pathaleon_the_calculatorAI (creature);
+ return new boss_pathaleon_the_calculatorAI(creature);
}
};
@@ -179,7 +179,7 @@ class npc_nether_wraith : public CreatureScript
uint32 Die_Timer;
bool Detonation;
- void Reset()
+ void Reset() OVERRIDE
{
ArcaneMissiles_Timer = urand(1000, 4000);
Detonation_Timer = 20000;
@@ -187,9 +187,9 @@ class npc_nether_wraith : public CreatureScript
Detonation = false;
}
- void EnterCombat(Unit* /*who*/) {}
+ void EnterCombat(Unit* /*who*/) OVERRIDE {}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -230,9 +230,9 @@ class npc_nether_wraith : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
- return new npc_nether_wraithAI (creature);
+ return new npc_nether_wraithAI(creature);
}
};
diff --git a/src/server/scripts/Outland/TempestKeep/Mechanar/instance_mechanar.cpp b/src/server/scripts/Outland/TempestKeep/Mechanar/instance_mechanar.cpp
index 146569db284..64ebef52a87 100644
--- a/src/server/scripts/Outland/TempestKeep/Mechanar/instance_mechanar.cpp
+++ b/src/server/scripts/Outland/TempestKeep/Mechanar/instance_mechanar.cpp
@@ -135,7 +135,7 @@ class instance_mechanar : public InstanceMapScript
}
};
- InstanceScript* GetInstanceScript(InstanceMap* map) const
+ InstanceScript* GetInstanceScript(InstanceMap* map) const OVERRIDE
{
return new instance_mechanar_InstanceMapScript(map);
}
diff --git a/src/server/scripts/Outland/TempestKeep/arcatraz/arcatraz.cpp b/src/server/scripts/Outland/TempestKeep/arcatraz/arcatraz.cpp
index 43af42b1e72..f03cb033b0f 100644
--- a/src/server/scripts/Outland/TempestKeep/arcatraz/arcatraz.cpp
+++ b/src/server/scripts/Outland/TempestKeep/arcatraz/arcatraz.cpp
@@ -37,7 +37,7 @@ EndContentData */
# npc_millhouse_manastorm
#####*/
-enum eMillhouseSays
+enum MillhouseSays
{
SAY_INTRO_1 = 0,
SAY_INTRO_2 = 1,
@@ -53,7 +53,7 @@ enum eMillhouseSays
SAY_COMPLETE = 11,
};
-enum eMillhouseSpells
+enum MillhouseSpells
{
SPELL_CONJURE_WATER = 36879,
SPELL_ARCANE_INTELLECT = 36880,
@@ -91,7 +91,7 @@ class npc_millhouse_manastorm : public CreatureScript
uint32 Pyroblast_Timer;
uint32 Fireball_Timer;
- void Reset()
+ void Reset() OVERRIDE
{
EventProgress_Timer = 2000;
LowHp = false;
@@ -111,7 +111,7 @@ class npc_millhouse_manastorm : public CreatureScript
}
}
- void AttackStart(Unit* who)
+ void AttackStart(Unit* who) OVERRIDE
{
if (me->Attack(who, true))
{
@@ -122,14 +122,14 @@ class npc_millhouse_manastorm : public CreatureScript
}
}
- void EnterCombat(Unit* /*who*/){}
+ void EnterCombat(Unit* /*who*/)OVERRIDE {}
- void KilledUnit(Unit* /*victim*/)
+ void KilledUnit(Unit* /*victim*/) OVERRIDE
{
Talk(SAY_KILL);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
Talk(SAY_DEATH);
@@ -138,7 +138,7 @@ class npc_millhouse_manastorm : public CreatureScript
->FailQuest();*/
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!Init)
{
@@ -221,7 +221,7 @@ class npc_millhouse_manastorm : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_millhouse_manastormAI(creature);
}
@@ -230,7 +230,7 @@ class npc_millhouse_manastorm : public CreatureScript
# npc_warden_mellichar
#####*/
-enum eWardenSays
+enum WardenSays
{
YELL_INTRO1 = 0,
YELL_INTRO2 = 1,
@@ -242,7 +242,7 @@ enum eWardenSays
YELL_WELCOME = 7,
};
-enum eWardenUnits
+enum WardenUnits
{
//phase 2(acid mobs)
ENTRY_TRICKSTER = 20905,
@@ -259,7 +259,7 @@ enum eWardenUnits
ENTRY_SKYRISS = 20912,
};
-enum eWardenSpells
+enum WardenSpells
{
//TARGET_SCRIPT
SPELL_TARGET_ALPHA = 36856,
@@ -293,7 +293,7 @@ class npc_warden_mellichar : public CreatureScript
uint32 EventProgress_Timer;
uint32 Phase;
- void Reset()
+ void Reset() OVERRIDE
{
IsRunning = false;
CanSpawn = false;
@@ -308,9 +308,10 @@ class npc_warden_mellichar : public CreatureScript
instance->SetData(TYPE_HARBINGERSKYRISS, NOT_STARTED);
}
- void AttackStart(Unit* /*who*/) {}
+ void AttackStart(Unit* /*who*/) OVERRIDE {}
+
+ void MoveInLineOfSight(Unit* who) OVERRIDE
- void MoveInLineOfSight(Unit* who)
{
if (IsRunning)
return;
@@ -328,7 +329,7 @@ class npc_warden_mellichar : public CreatureScript
}
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
Talk(YELL_INTRO1);
DoCast(me, SPELL_BUBBLE_VISUAL);
@@ -398,7 +399,7 @@ class npc_warden_mellichar : public CreatureScript
}
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!IsRunning)
return;
@@ -514,7 +515,7 @@ class npc_warden_mellichar : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_warden_mellicharAI(creature);
}
@@ -540,7 +541,7 @@ class npc_zerekethvoidzone : public CreatureScript
{
npc_zerekethvoidzoneAI(Creature* creature) : ScriptedAI(creature) {}
- void Reset()
+ void Reset() OVERRIDE
{
me->SetUInt32Value(UNIT_NPC_FLAGS, 0);
me->setFaction(16);
@@ -549,10 +550,10 @@ class npc_zerekethvoidzone : public CreatureScript
DoCast(me, SPELL_VOID_ZONE_DAMAGE);
}
- void EnterCombat(Unit* /*who*/) {}
+ void EnterCombat(Unit* /*who*/) OVERRIDE {}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_zerekethvoidzoneAI(creature);
}
diff --git a/src/server/scripts/Outland/TempestKeep/arcatraz/arcatraz.h b/src/server/scripts/Outland/TempestKeep/arcatraz/arcatraz.h
index 9c852196616..37839d4794d 100644
--- a/src/server/scripts/Outland/TempestKeep/arcatraz/arcatraz.h
+++ b/src/server/scripts/Outland/TempestKeep/arcatraz/arcatraz.h
@@ -16,20 +16,23 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef DEF_ARCATRAZ_H
-#define DEF_ARCATRAZ_H
+#ifndef ARCATRAZ_H_
+#define ARCATRAZ_H_
-#define TYPE_ZEREKETH 1
-#define TYPE_DALLIAH 2
-#define TYPE_SOCCOTHRATES 3
-#define TYPE_HARBINGERSKYRISS 4
-#define TYPE_WARDEN_1 5
-#define TYPE_WARDEN_2 6
-#define TYPE_WARDEN_3 7
-#define TYPE_WARDEN_4 8
-#define TYPE_WARDEN_5 9
-#define DATA_MELLICHAR 10
-#define TYPE_SHIELD_OPEN 11
-#define DATA_SPHERE_SHIELD 12
-#endif
+enum DataTypes
+{
+ TYPE_ZEREKETH = 1,
+ TYPE_DALLIAH = 2,
+ TYPE_SOCCOTHRATES = 3,
+ TYPE_HARBINGERSKYRISS = 4,
+ TYPE_WARDEN_1 = 5,
+ TYPE_WARDEN_2 = 6,
+ TYPE_WARDEN_3 = 7,
+ TYPE_WARDEN_4 = 8,
+ TYPE_WARDEN_5 = 9,
+ DATA_MELLICHAR = 10,
+ TYPE_SHIELD_OPEN = 11,
+ DATA_SPHERE_SHIELD = 12
+};
+#endif // ARCATRAZ_H_
diff --git a/src/server/scripts/Outland/TempestKeep/arcatraz/boss_harbinger_skyriss.cpp b/src/server/scripts/Outland/TempestKeep/arcatraz/boss_harbinger_skyriss.cpp
index 3cf9f01a601..c7765eb24ad 100644
--- a/src/server/scripts/Outland/TempestKeep/arcatraz/boss_harbinger_skyriss.cpp
+++ b/src/server/scripts/Outland/TempestKeep/arcatraz/boss_harbinger_skyriss.cpp
@@ -32,7 +32,7 @@ EndContentData */
#include "ScriptedCreature.h"
#include "arcatraz.h"
-enum eSays
+enum Says
{
SAY_INTRO = 0,
SAY_AGGRO = 1,
@@ -43,16 +43,19 @@ enum eSays
SAY_DEATH = 6
};
-enum eSpells
+enum Spells
{
- SPELL_FEAR = 39415,
- SPELL_MIND_REND = 36924,
- H_SPELL_MIND_REND = 39017,
- SPELL_DOMINATION = 37162,
- H_SPELL_DOMINATION = 39019,
- H_SPELL_MANA_BURN = 39020,
- SPELL_66_ILLUSION = 36931, //entry 21466
- SPELL_33_ILLUSION = 36932, //entry 21467
+ SPELL_FEAR = 39415,
+ SPELL_MIND_REND = 36924,
+ H_SPELL_MIND_REND = 39017,
+ SPELL_DOMINATION = 37162,
+ H_SPELL_DOMINATION = 39019,
+ H_SPELL_MANA_BURN = 39020,
+ SPELL_66_ILLUSION = 36931, //entry 21466
+ SPELL_33_ILLUSION = 36932, //entry 21467
+
+ SPELL_MIND_REND_IMAGE = 36929,
+ H_SPELL_MIND_REND_IMAGE = 39021
};
class boss_harbinger_skyriss : public CreatureScript
@@ -84,7 +87,7 @@ class boss_harbinger_skyriss : public CreatureScript
uint32 Domination_Timer;
uint32 ManaBurn_Timer;
- void Reset()
+ void Reset() OVERRIDE
{
if (!Intro)
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC);
@@ -100,7 +103,8 @@ class boss_harbinger_skyriss : public CreatureScript
ManaBurn_Timer = 25000;
}
- void MoveInLineOfSight(Unit* who)
+ void MoveInLineOfSight(Unit* who) OVERRIDE
+
{
if (!Intro)
return;
@@ -108,16 +112,16 @@ class boss_harbinger_skyriss : public CreatureScript
ScriptedAI::MoveInLineOfSight(who);
}
- void EnterCombat(Unit* /*who*/) {}
+ void EnterCombat(Unit* /*who*/) OVERRIDE {}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
Talk(SAY_DEATH);
if (instance)
instance->SetData(TYPE_HARBINGERSKYRISS, DONE);
}
- void JustSummoned(Creature* summon)
+ void JustSummoned(Creature* summon) OVERRIDE
{
if (!summon)
return;
@@ -130,7 +134,7 @@ class boss_harbinger_skyriss : public CreatureScript
summon->AI()->AttackStart(target);
}
- void KilledUnit(Unit* victim)
+ void KilledUnit(Unit* victim) OVERRIDE
{
//won't yell killing pet/other unit
if (victim->GetEntry() == 21436)
@@ -152,7 +156,7 @@ class boss_harbinger_skyriss : public CreatureScript
DoCast(me, SPELL_33_ILLUSION);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!Intro)
{
@@ -269,15 +273,12 @@ class boss_harbinger_skyriss : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
- return new boss_harbinger_skyrissAI (creature);
+ return new boss_harbinger_skyrissAI(creature);
}
};
-#define SPELL_MIND_REND_IMAGE 36929
-#define H_SPELL_MIND_REND_IMAGE 39021
-
class boss_harbinger_skyriss_illusion : public CreatureScript
{
public:
@@ -290,12 +291,12 @@ class boss_harbinger_skyriss_illusion : public CreatureScript
{
boss_harbinger_skyriss_illusionAI(Creature* creature) : ScriptedAI(creature) {}
- void Reset() { }
+ void Reset() OVERRIDE {}
- void EnterCombat(Unit* /*who*/) { }
+ void EnterCombat(Unit* /*who*/) OVERRIDE {}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_harbinger_skyriss_illusionAI(creature);
}
diff --git a/src/server/scripts/Outland/TempestKeep/arcatraz/instance_arcatraz.cpp b/src/server/scripts/Outland/TempestKeep/arcatraz/instance_arcatraz.cpp
index a70b6fb35b4..725c5c5aa17 100644
--- a/src/server/scripts/Outland/TempestKeep/arcatraz/instance_arcatraz.cpp
+++ b/src/server/scripts/Outland/TempestKeep/arcatraz/instance_arcatraz.cpp
@@ -29,7 +29,7 @@ EndScriptData */
#define MAX_ENCOUNTER 9
-enum eUnits
+enum Units
{
CONTAINMENT_CORE_SECURITY_FIELD_ALPHA = 184318, //door opened when Wrath-Scryer Soccothrates dies
CONTAINMENT_CORE_SECURITY_FIELD_BETA = 184319, //door opened when Dalliah the Doomsayer dies
@@ -148,7 +148,7 @@ class instance_arcatraz : public InstanceMapScript
MellicharGUID = creature->GetGUID();
}
- void SetData(uint32 type, uint32 data)
+ void SetData(uint32 type, uint32 data) OVERRIDE
{
switch (type)
{
@@ -230,7 +230,7 @@ class instance_arcatraz : public InstanceMapScript
}
}
- uint32 GetData(uint32 type) const
+ uint32 GetData(uint32 type) const OVERRIDE
{
switch (type)
{
@@ -244,7 +244,7 @@ class instance_arcatraz : public InstanceMapScript
return 0;
}
- uint64 GetData64(uint32 data) const
+ uint64 GetData64(uint32 data) const OVERRIDE
{
switch (data)
{
@@ -255,7 +255,7 @@ class instance_arcatraz : public InstanceMapScript
}
};
- InstanceScript* GetInstanceScript(InstanceMap* map) const
+ InstanceScript* GetInstanceScript(InstanceMap* map) const OVERRIDE
{
return new instance_arcatraz_InstanceMapScript(map);
}
diff --git a/src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp b/src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp
index 6775fb95824..bd67f4be8b7 100644
--- a/src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp
+++ b/src/server/scripts/Outland/TempestKeep/botanica/boss_commander_sarannis.cpp
@@ -52,13 +52,13 @@ class boss_commander_sarannis : public CreatureScript
{
boss_commander_sarannisAI(Creature* creature) : BossAI(creature, DATA_COMMANDER_SARANNIS) { }
- void Reset()
+ void Reset() OVERRIDE
{
_Reset();
_phase = true;
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
_EnterCombat();
Talk(SAY_AGGRO);
@@ -66,18 +66,18 @@ class boss_commander_sarannis : public CreatureScript
events.ScheduleEvent(EVENT_ARCANE_DEVASTATION, 15200);
}
- void KilledUnit(Unit* /*victim*/)
+ void KilledUnit(Unit* /*victim*/) OVERRIDE
{
Talk(SAY_KILL);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
_JustDied();
Talk(SAY_DEATH);
}
- void DamageTaken(Unit* /*killer*/, uint32 &damage)
+ void DamageTaken(Unit* /*killer*/, uint32 &damage) OVERRIDE
{
if (me->HealthBelowPctDamaged(50, damage) && _phase)
{
@@ -88,12 +88,12 @@ class boss_commander_sarannis : public CreatureScript
}
}
- void JustSummoned(Creature* summon)
+ void JustSummoned(Creature* summon) OVERRIDE
{
BossAI::JustSummoned(summon);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -129,7 +129,7 @@ class boss_commander_sarannis : public CreatureScript
bool _phase;
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_commander_sarannisAI(creature);
}
@@ -167,13 +167,13 @@ class spell_commander_sarannis_summon_reinforcements : public SpellScriptLoader
GetCaster()->SummonCreature(NPC_SUMMONED_BLOODWARDER_RESERVIST, PosSummonReinforcements[3], TEMPSUMMON_CORPSE_DESPAWN);
}
- void Register()
+ void Register() OVERRIDE
{
OnEffectHitTarget += SpellEffectFn(spell_commander_sarannis_summon_reinforcements_SpellScript::HandleCast, EFFECT_0, SPELL_EFFECT_DUMMY);
}
};
- SpellScript* GetSpellScript() const
+ SpellScript* GetSpellScript() const OVERRIDE
{
return new spell_commander_sarannis_summon_reinforcements_SpellScript();
}
diff --git a/src/server/scripts/Outland/TempestKeep/botanica/boss_high_botanist_freywinn.cpp b/src/server/scripts/Outland/TempestKeep/botanica/boss_high_botanist_freywinn.cpp
index f883918db75..1b362fe8a5a 100644
--- a/src/server/scripts/Outland/TempestKeep/botanica/boss_high_botanist_freywinn.cpp
+++ b/src/server/scripts/Outland/TempestKeep/botanica/boss_high_botanist_freywinn.cpp
@@ -27,7 +27,7 @@ EndScriptData */
#include "ScriptedCreature.h"
#include "the_botanica.h"
-enum eSays
+enum Says
{
SAY_AGGRO = 0,
SAY_KILL = 1,
@@ -37,7 +37,7 @@ enum eSays
SAY_OOC_RANDOM = 5
};
-enum eSpells
+enum Spells
{
SPELL_TRANQUILITY = 34550,
SPELL_TREE_FORM = 34551,
@@ -48,7 +48,10 @@ enum eSpells
SPELL_PLANT_RED = 34763
};
-#define ENTRY_FRAYER 19953
+enum Creatures
+{
+ NPC_FRAYER = 19953
+};
class boss_high_botanist_freywinn : public CreatureScript
{
@@ -71,7 +74,7 @@ class boss_high_botanist_freywinn : public CreatureScript
uint32 DeadAddsCount;
bool MoveFree;
- void Reset()
+ void Reset() OVERRIDE
{
Adds_List.clear();
@@ -82,14 +85,14 @@ class boss_high_botanist_freywinn : public CreatureScript
MoveFree = true;
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
Talk(SAY_AGGRO);
}
- void JustSummoned(Creature* summoned)
+ void JustSummoned(Creature* summoned) OVERRIDE
{
- if (summoned->GetEntry() == ENTRY_FRAYER)
+ if (summoned->GetEntry() == NPC_FRAYER)
Adds_List.push_back(summoned->GetGUID());
}
@@ -104,17 +107,17 @@ class boss_high_botanist_freywinn : public CreatureScript
}
}
- void KilledUnit(Unit* /*victim*/)
+ void KilledUnit(Unit* /*victim*/) OVERRIDE
{
Talk(SAY_KILL);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
Talk(SAY_DEATH);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -197,7 +200,7 @@ class boss_high_botanist_freywinn : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_high_botanist_freywinnAI(creature);
}
diff --git a/src/server/scripts/Outland/TempestKeep/botanica/boss_laj.cpp b/src/server/scripts/Outland/TempestKeep/botanica/boss_laj.cpp
index 91bf42351b4..fe9e7d87008 100644
--- a/src/server/scripts/Outland/TempestKeep/botanica/boss_laj.cpp
+++ b/src/server/scripts/Outland/TempestKeep/botanica/boss_laj.cpp
@@ -27,7 +27,7 @@ EndScriptData */
#include "ScriptedCreature.h"
#include "the_botanica.h"
-enum eSpells
+enum Spells
{
SPELL_ALLERGIC_REACTION = 34697,
SPELL_TELEPORT_SELF = 34673,
@@ -41,7 +41,7 @@ enum eSpells
SPELL_SUMMON_LASHER_4 = 34688,
SPELL_SUMMON_FLAYER_3 = 34690
};
-enum eOthers
+enum Misc
{
EMOTE_SUMMON = 0,
MODEL_DEFAULT = 13109,
@@ -70,7 +70,7 @@ class boss_laj : public CreatureScript
uint32 Transform_Timer;
uint32 Allergic_Timer;
- void Reset()
+ void Reset() OVERRIDE
{
me->SetDisplayId(MODEL_DEFAULT);
me->ApplySpellImmune(0, IMMUNITY_SCHOOL, SPELL_SCHOOL_MASK_SHADOW, true);
@@ -157,17 +157,17 @@ class boss_laj : public CreatureScript
CanSummon = false;
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
}
- void JustSummoned(Creature* summon)
+ void JustSummoned(Creature* summon) OVERRIDE
{
if (summon && me->GetVictim())
summon->AI()->AttackStart(SelectTarget(SELECT_TARGET_RANDOM, 0));
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -213,7 +213,7 @@ class boss_laj : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_lajAI(creature);
}
diff --git a/src/server/scripts/Outland/TempestKeep/botanica/boss_thorngrin_the_tender.cpp b/src/server/scripts/Outland/TempestKeep/botanica/boss_thorngrin_the_tender.cpp
index 70b626190b7..d2a1b294698 100644
--- a/src/server/scripts/Outland/TempestKeep/botanica/boss_thorngrin_the_tender.cpp
+++ b/src/server/scripts/Outland/TempestKeep/botanica/boss_thorngrin_the_tender.cpp
@@ -54,14 +54,14 @@ class boss_thorngrin_the_tender : public CreatureScript
{
boss_thorngrin_the_tenderAI(Creature* creature) : BossAI(creature, DATA_THORNGRIN_THE_TENDER) { }
- void Reset()
+ void Reset() OVERRIDE
{
_Reset();
_phase1 = true;
_phase2 = true;
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
_EnterCombat();
Talk(SAY_AGGRO);
@@ -70,18 +70,18 @@ class boss_thorngrin_the_tender : public CreatureScript
events.ScheduleEvent(EVENT_ENRAGE, 12000);
}
- void KilledUnit(Unit* /*victim*/)
+ void KilledUnit(Unit* /*victim*/) OVERRIDE
{
Talk(SAY_KILL);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
_JustDied();
Talk(SAY_DEATH);
}
- void DamageTaken(Unit* /*killer*/, uint32 &damage)
+ void DamageTaken(Unit* /*killer*/, uint32 &damage) OVERRIDE
{
if (me->HealthBelowPctDamaged(50, damage) && _phase1)
{
@@ -95,7 +95,7 @@ class boss_thorngrin_the_tender : public CreatureScript
}
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -140,7 +140,7 @@ class boss_thorngrin_the_tender : public CreatureScript
bool _phase2;
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_thorngrin_the_tenderAI(creature);
}
diff --git a/src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp b/src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp
index 09ca90570b0..36a17996f94 100644
--- a/src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp
+++ b/src/server/scripts/Outland/TempestKeep/botanica/boss_warp_splinter.cpp
@@ -27,7 +27,7 @@ EndScriptData */
#include "ScriptedCreature.h"
#include "the_botanica.h"
-enum eSays
+enum Says
{
SAY_AGGRO = 0,
SAY_SLAY = 1,
@@ -35,7 +35,7 @@ enum eSays
SAY_DEATH = 3
};
-enum eSpells
+enum Spells
{
WAR_STOMP = 34716,
SUMMON_TREANTS = 34727, // DBC: 34727, 34731, 34733, 34734, 34736, 34739, 34741 (with Ancestral Life spell 34742) // won't work (guardian summon)
@@ -44,7 +44,7 @@ enum eSpells
SPELL_HEAL_FATHER = 6262
};
-enum eOthers
+enum Misc
{
CREATURE_TREANT = 19949,
TREANT_SPAWN_DIST = 50 //50 yards from Warp Splinter's spawn point
@@ -73,7 +73,7 @@ class npc_warp_splinter_treant : public CreatureScript
}
struct npc_warp_splinter_treantAI : public ScriptedAI
{
- npc_warp_splinter_treantAI (Creature* creature) : ScriptedAI(creature)
+ npc_warp_splinter_treantAI(Creature* creature) : ScriptedAI(creature)
{
WarpGuid = 0;
}
@@ -81,16 +81,17 @@ class npc_warp_splinter_treant : public CreatureScript
uint64 WarpGuid;
uint32 check_Timer;
- void Reset()
+ void Reset() OVERRIDE
{
check_Timer = 0;
}
- void EnterCombat(Unit* /*who*/) {}
+ void EnterCombat(Unit* /*who*/) OVERRIDE {}
- void MoveInLineOfSight(Unit* /*who*/) {}
+ void MoveInLineOfSight(Unit* /*who*/) OVERRIDE {}
- void UpdateAI(uint32 diff)
+
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
{
@@ -118,7 +119,7 @@ class npc_warp_splinter_treant : public CreatureScript
DoMeleeAttackIfReady();
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_warp_splinter_treantAI(creature);
}
@@ -150,7 +151,7 @@ class boss_warp_splinter : public CreatureScript
float Treant_Spawn_Pos_X;
float Treant_Spawn_Pos_Y;
- void Reset()
+ void Reset() OVERRIDE
{
War_Stomp_Timer = urand(25000, 40000);
Summon_Treants_Timer = 45000;
@@ -159,17 +160,17 @@ class boss_warp_splinter : public CreatureScript
me->SetSpeed(MOVE_RUN, 0.7f, true);
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
Talk(SAY_AGGRO);
}
- void KilledUnit(Unit* /*victim*/)
+ void KilledUnit(Unit* /*victim*/) OVERRIDE
{
Talk(SAY_SLAY);
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
Talk(SAY_DEATH);
}
@@ -190,7 +191,7 @@ class boss_warp_splinter : public CreatureScript
Talk(SAY_SUMMON);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -226,7 +227,7 @@ class boss_warp_splinter : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new boss_warp_splinterAI(creature);
}
diff --git a/src/server/scripts/Outland/TempestKeep/botanica/instance_the_botanica.cpp b/src/server/scripts/Outland/TempestKeep/botanica/instance_the_botanica.cpp
index 69b95e8c813..443a8aa55fa 100644
--- a/src/server/scripts/Outland/TempestKeep/botanica/instance_the_botanica.cpp
+++ b/src/server/scripts/Outland/TempestKeep/botanica/instance_the_botanica.cpp
@@ -59,7 +59,7 @@ class instance_the_botanica : public InstanceMapScript
}
}
- uint64 GetData64(uint32 type) const
+ uint64 GetData64(uint32 type) const OVERRIDE
{
switch (type)
{
@@ -152,7 +152,7 @@ class instance_the_botanica : public InstanceMapScript
uint64 WarpSplinterGUID;
};
- InstanceScript* GetInstanceScript(InstanceMap* map) const
+ InstanceScript* GetInstanceScript(InstanceMap* map) const OVERRIDE
{
return new instance_the_botanica_InstanceMapScript(map);
}