aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Kalimdor
diff options
context:
space:
mode:
authorVincent-Michael <Vincent_Michael@gmx.de>2013-07-15 15:14:01 +0200
committerVincent-Michael <Vincent_Michael@gmx.de>2013-07-15 15:14:01 +0200
commitde193fc80dbdcfa887c1366c5adb0d5d3e58a2f5 (patch)
treefce95d7cafee4db9d8c4a9ae695c63c6d6e3b297 /src/server/scripts/Kalimdor
parent9e9bdd77c565ab5c90441960bacb44ccd0d9e919 (diff)
Scripted: Add some missing override
Diffstat (limited to 'src/server/scripts/Kalimdor')
-rw-r--r--src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_kazrogal.cpp2
-rw-r--r--src/server/scripts/Kalimdor/Firelands/boss_alysrazor.cpp70
-rw-r--r--src/server/scripts/Kalimdor/Firelands/instance_firelands.cpp4
-rw-r--r--src/server/scripts/Kalimdor/HallsOfOrigination/boss_anraphet.cpp40
-rw-r--r--src/server/scripts/Kalimdor/HallsOfOrigination/boss_earthrager_ptah.cpp20
-rw-r--r--src/server/scripts/Kalimdor/HallsOfOrigination/boss_temple_guardian_anhuur.cpp30
-rw-r--r--src/server/scripts/Kalimdor/HallsOfOrigination/instance_halls_of_origination.cpp2
-rw-r--r--src/server/scripts/Kalimdor/zone_desolace.cpp2
-rw-r--r--src/server/scripts/Kalimdor/zone_durotar.cpp12
-rw-r--r--src/server/scripts/Kalimdor/zone_mulgore.cpp8
-rw-r--r--src/server/scripts/Kalimdor/zone_tanaris.cpp22
-rw-r--r--src/server/scripts/Kalimdor/zone_thunder_bluff.cpp8
12 files changed, 110 insertions, 110 deletions
diff --git a/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_kazrogal.cpp b/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_kazrogal.cpp
index 66e276d25b6..0c918f0b0ca 100644
--- a/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_kazrogal.cpp
+++ b/src/server/scripts/Kalimdor/CavernsOfTime/BattleForMountHyjal/boss_kazrogal.cpp
@@ -226,7 +226,7 @@ class spell_mark_of_kazrogal : public SpellScriptLoader
}
};
- SpellScript* GetSpellScript() const
+ SpellScript* GetSpellScript() const OVERRIDE
{
return new spell_mark_of_kazrogal_SpellScript();
}
diff --git a/src/server/scripts/Kalimdor/Firelands/boss_alysrazor.cpp b/src/server/scripts/Kalimdor/Firelands/boss_alysrazor.cpp
index e4b947d4603..e298bba53b1 100644
--- a/src/server/scripts/Kalimdor/Firelands/boss_alysrazor.cpp
+++ b/src/server/scripts/Kalimdor/Firelands/boss_alysrazor.cpp
@@ -188,12 +188,12 @@ class npc_harbinger_of_flame : public CreatureScript
_events.ScheduleEvent(EVENT_FIEROCLAST_BARRAGE, 6000);
}
- void JustReachedHome()
+ void JustReachedHome() OVERRIDE
{
AlysrazorTrashEvaded(me);
}
- void MoveInLineOfSight(Unit* unit)
+ void MoveInLineOfSight(Unit* unit) OVERRIDE
{
if (me->IsInCombat())
return;
@@ -204,7 +204,7 @@ class npc_harbinger_of_flame : public CreatureScript
ScriptedAI::MoveInLineOfSight(unit);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!me->IsInCombat())
if (!me->GetCurrentSpell(CURRENT_CHANNELED_SPELL))
@@ -242,7 +242,7 @@ class npc_harbinger_of_flame : public CreatureScript
EventMap _events;
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_harbinger_of_flameAI(creature);
}
@@ -259,20 +259,20 @@ class npc_blazing_monstrosity : public CreatureScript
{
}
- void EnterEvadeMode()
+ void EnterEvadeMode() OVERRIDE
{
_summons.DespawnAll();
_events.Reset();
PassiveAI::EnterEvadeMode();
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
_summons.DespawnAll();
_events.Reset();
}
- void JustReachedHome()
+ void JustReachedHome() OVERRIDE
{
AlysrazorTrashEvaded(me);
}
@@ -287,7 +287,7 @@ class npc_blazing_monstrosity : public CreatureScript
_events.ScheduleEvent(EVENT_CONTINUE_SPITTING, 9000);
}
- void PassengerBoarded(Unit* passenger, int8 /*seat*/, bool apply)
+ void PassengerBoarded(Unit* passenger, int8 /*seat*/, bool apply) OVERRIDE
{
if (!apply)
return;
@@ -305,17 +305,17 @@ class npc_blazing_monstrosity : public CreatureScript
init.Launch();
}
- void JustSummoned(Creature* summon)
+ void JustSummoned(Creature* summon) OVERRIDE
{
_summons.Summon(summon);
}
- void SummonedCreatureDespawn(Creature* summon)
+ void SummonedCreatureDespawn(Creature* summon) OVERRIDE
{
_summons.Despawn(summon);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -344,7 +344,7 @@ class npc_blazing_monstrosity : public CreatureScript
EventMap _events;
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_blazing_monstrosityAI(creature);
}
@@ -361,20 +361,20 @@ class npc_molten_barrage : public CreatureScript
{
}
- void AttackStart(Unit* target)
+ void AttackStart(Unit* target) OVERRIDE
{
if (target)
me->GetMotionMaster()->MoveFollow(target, 0.0f, 0.0f, MOTION_SLOT_IDLE);
}
- void IsSummonedBy(Unit* /*summoner*/)
+ void IsSummonedBy(Unit* /*summoner*/) OVERRIDE
{
DoCastAOE(SPELL_AGGRO_CLOSEST, true);
DoCast(me, SPELL_MOLTEN_BARRAGE_VISUAL);
DoCast(me, SPELL_INVISIBILITY_AND_STEALTH_DETECTION, true);
}
- void MovementInform(uint32 movementType, uint32 /*pointId*/)
+ void MovementInform(uint32 movementType, uint32 /*pointId*/) OVERRIDE
{
if (movementType != EFFECT_MOTION_TYPE)
return;
@@ -384,7 +384,7 @@ class npc_molten_barrage : public CreatureScript
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_molten_barrageAI(creature);
}
@@ -401,16 +401,16 @@ class npc_egg_pile : public CreatureScript
{
}
- void AttackStart(Unit* /*target*/) { }
+ void AttackStart(Unit* /*target*/) OVERRIDE { }
- void Reset()
+ void Reset() OVERRIDE
{
me->SetReactState(REACT_PASSIVE);
_events.Reset();
_callHatchlingSpell = 0;
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
_events.Reset();
std::list<Creature*> eggs;
@@ -421,12 +421,12 @@ class npc_egg_pile : public CreatureScript
DoCast(me, SPELL_ALYSRAZOR_COSMETIC_EGG_XPLOSION, true);
}
- void JustReachedHome()
+ void JustReachedHome() OVERRIDE
{
AlysrazorTrashEvaded(me);
}
- void DoAction(int32 action)
+ void DoAction(int32 action) OVERRIDE
{
if (action != NPC_BLAZING_MONSTROSITY_LEFT &&
action != NPC_BLAZING_MONSTROSITY_RIGHT)
@@ -441,7 +441,7 @@ class npc_egg_pile : public CreatureScript
_events.ScheduleEvent(EVENT_SUMMON_SMOULDERING_HATCHLING, 1);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;
@@ -487,7 +487,7 @@ class npc_egg_pile : public CreatureScript
uint32 _callHatchlingSpell;
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_egg_pileAI(creature);
}
@@ -502,7 +502,7 @@ class spell_alysrazor_cosmetic_egg_xplosion : public SpellScriptLoader
{
PrepareSpellScript(spell_alysrazor_cosmetic_egg_xplosion_SpellScript);
- bool Validate(SpellInfo const* /*spellInfo*/)
+ bool Validate(SpellInfo const* /*spellInfo*/) OVERRIDE
{
if (!sCreatureDisplayInfoStore.LookupEntry(MODEL_INVISIBLE_STALKER))
return false;
@@ -517,13 +517,13 @@ class spell_alysrazor_cosmetic_egg_xplosion : public SpellScriptLoader
creature->DespawnOrUnsummon(4000);
}
- void Register()
+ void Register() OVERRIDE
{
OnEffectHitTarget += SpellEffectFn(spell_alysrazor_cosmetic_egg_xplosion_SpellScript::HandleExplosion, EFFECT_0, SPELL_EFFECT_DUMMY);
}
};
- SpellScript* GetSpellScript() const
+ SpellScript* GetSpellScript() const OVERRIDE
{
return new spell_alysrazor_cosmetic_egg_xplosion_SpellScript();
}
@@ -538,7 +538,7 @@ class spell_alysrazor_turn_monstrosity : public SpellScriptLoader
{
PrepareSpellScript(spell_alysrazor_turn_monstrosity_SpellScript);
- bool Validate(SpellInfo const* /*spellInfo*/)
+ bool Validate(SpellInfo const* /*spellInfo*/) OVERRIDE
{
if (!sSpellMgr->GetSpellInfo(SPELL_GENERIC_DUMMY_CAST))
return false;
@@ -605,14 +605,14 @@ class spell_alysrazor_turn_monstrosity : public SpellScriptLoader
GetHitUnit()->PlayOneShotAnimKit(ANIM_KIT_BIRD_TURN);
}
- void Register()
+ void Register() OVERRIDE
{
OnEffectHitTarget += SpellEffectFn(spell_alysrazor_turn_monstrosity_SpellScript::KnockBarrage, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
OnEffectHitTarget += SpellEffectFn(spell_alysrazor_turn_monstrosity_SpellScript::TurnBird, EFFECT_1, SPELL_EFFECT_SCRIPT_EFFECT);
}
};
- SpellScript* GetSpellScript() const
+ SpellScript* GetSpellScript() const OVERRIDE
{
return new spell_alysrazor_turn_monstrosity_SpellScript();
}
@@ -627,7 +627,7 @@ class spell_alysrazor_aggro_closest : public SpellScriptLoader
{
PrepareSpellScript(spell_alysrazor_aggro_closest_SpellScript);
- bool Load()
+ bool Load() OVERRIDE
{
return GetCaster()->GetTypeId() == TYPEID_UNIT;
}
@@ -645,14 +645,14 @@ class spell_alysrazor_aggro_closest : public SpellScriptLoader
GetCaster()->GetAI()->AttackStart(GetCaster()->ToCreature()->SelectVictim());
}
- void Register()
+ void Register() OVERRIDE
{
OnEffectHitTarget += SpellEffectFn(spell_alysrazor_aggro_closest_SpellScript::HandleEffect, EFFECT_0, SPELL_EFFECT_DUMMY);
AfterCast += SpellCastFn(spell_alysrazor_aggro_closest_SpellScript::UpdateThreat);
}
};
- SpellScript* GetSpellScript() const
+ SpellScript* GetSpellScript() const OVERRIDE
{
return new spell_alysrazor_aggro_closest_SpellScript();
}
@@ -667,7 +667,7 @@ class spell_alysrazor_fieroblast : public SpellScriptLoader
{
PrepareSpellScript(spell_alysrazor_fieroblast_SpellScript);
- bool Validate(SpellInfo const* /*spellInfo*/)
+ bool Validate(SpellInfo const* /*spellInfo*/) OVERRIDE
{
if (!sSpellMgr->GetSpellInfo(SPELL_FIRE_IT_UP))
return false;
@@ -679,13 +679,13 @@ class spell_alysrazor_fieroblast : public SpellScriptLoader
GetCaster()->CastSpell(GetCaster(), SPELL_FIRE_IT_UP, TRIGGERED_FULL_MASK);
}
- void Register()
+ void Register() OVERRIDE
{
AfterCast += SpellCastFn(spell_alysrazor_fieroblast_SpellScript::FireItUp);
}
};
- SpellScript* GetSpellScript() const
+ SpellScript* GetSpellScript() const OVERRIDE
{
return new spell_alysrazor_fieroblast_SpellScript();
}
diff --git a/src/server/scripts/Kalimdor/Firelands/instance_firelands.cpp b/src/server/scripts/Kalimdor/Firelands/instance_firelands.cpp
index dd8b2a76093..473cbb61011 100644
--- a/src/server/scripts/Kalimdor/Firelands/instance_firelands.cpp
+++ b/src/server/scripts/Kalimdor/Firelands/instance_firelands.cpp
@@ -35,7 +35,7 @@ class instance_firelands : public InstanceMapScript
SetBossNumber(EncounterCount);
}
- void OnCreatureCreate(Creature* creature)
+ void OnCreatureCreate(Creature* creature) OVERRIDE
{
switch (creature->GetEntry())
{
@@ -47,7 +47,7 @@ class instance_firelands : public InstanceMapScript
}
};
- InstanceScript* GetInstanceScript(InstanceMap* map) const
+ InstanceScript* GetInstanceScript(InstanceMap* map) const OVERRIDE
{
return new instance_firelands_InstanceScript(map);
}
diff --git a/src/server/scripts/Kalimdor/HallsOfOrigination/boss_anraphet.cpp b/src/server/scripts/Kalimdor/HallsOfOrigination/boss_anraphet.cpp
index 953ea2b4dc2..8e88d3ce521 100644
--- a/src/server/scripts/Kalimdor/HallsOfOrigination/boss_anraphet.cpp
+++ b/src/server/scripts/Kalimdor/HallsOfOrigination/boss_anraphet.cpp
@@ -141,7 +141,7 @@ public:
events.ScheduleEvent(EVENT_ANRAPHET_OMEGA_STANCE, 35000, 0, PHASE_COMBAT);
}
- void Reset()
+ void Reset() OVERRIDE
{
_Reset();
me->SetWalk(false);
@@ -156,14 +156,14 @@ public:
}
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
instance->SendEncounterUnit(ENCOUNTER_FRAME_ENGAGE, me, 1);
Talk(ANRAPHET_SAY_AGGRO);
_EnterCombat();
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
instance->SendEncounterUnit(ENCOUNTER_FRAME_DISENGAGE, me);
Talk(ANRAPHET_SAY_DEATH);
@@ -174,26 +174,26 @@ public:
_JustDied();
}
- void KilledUnit(Unit* victim)
+ void KilledUnit(Unit* victim) OVERRIDE
{
if (victim->GetTypeId() == TYPEID_PLAYER)
Talk(ANRAPHET_SAY_KILL);
}
- void JustReachedHome()
+ void JustReachedHome() OVERRIDE
{
instance->SendEncounterUnit(ENCOUNTER_FRAME_DISENGAGE, me);
_JustReachedHome();
instance->SetBossState(DATA_ANRAPHET, FAIL);
}
- void DoAction(int32 action)
+ void DoAction(int32 action) OVERRIDE
{
if (action == ACTION_ANRAPHET_INTRO)
events.ScheduleEvent(EVENT_ANRAPHET_APPEAR, 6000, 0, PHASE_INTRO);
}
- void MovementInform(uint32 type, uint32 point)
+ void MovementInform(uint32 type, uint32 point) OVERRIDE
{
if (type != POINT_MOTION_TYPE)
return;
@@ -205,7 +205,7 @@ public:
}
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if ((events.GetPhaseMask() & PHASE_MASK_COMBAT) && (!UpdateVictim() || !CheckInRoom()))
return;
@@ -264,7 +264,7 @@ public:
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return GetHallsOfOriginationAI<boss_anraphetAI>(creature);
}
@@ -279,15 +279,15 @@ class npc_omega_stance : public CreatureScript
{
npc_omega_stanceAI(Creature* creature) : ScriptedAI(creature) { }
- void IsSummonedBy(Unit* /*who*/)
+ void IsSummonedBy(Unit* /*who*/) OVERRIDE
{
DoCast(me, SPELL_OMEGA_STANCE_SPIDER_TRIGGER, true);
}
- void EnterEvadeMode() { }
+ void EnterEvadeMode() OVERRIDE { }
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_omega_stanceAI(creature);
}
@@ -302,19 +302,19 @@ class npc_alpha_beam : public CreatureScript
{
npc_alpha_beamAI(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript()) { }
- void IsSummonedBy(Unit* /*summoner*/)
+ void IsSummonedBy(Unit* /*summoner*/) OVERRIDE
{
if (Creature* anraphet = ObjectAccessor::GetCreature(*me, _instance->GetData64(DATA_ANRAPHET_GUID)))
anraphet->CastSpell(me, SPELL_ALPHA_BEAMS_BACK_CAST);
}
- void EnterEvadeMode() { } // Never evade
+ void EnterEvadeMode() OVERRIDE { } // Never evade
private:
InstanceScript* _instance;
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return GetHallsOfOriginationAI<npc_alpha_beamAI>(creature);
}
@@ -329,7 +329,7 @@ class npc_brann_bronzebeard_anraphet : public CreatureScript
{
npc_brann_bronzebeard_anraphetAI(Creature* creature) : CreatureAI(creature), _currentPoint(0), _instance(creature->GetInstanceScript()) { }
- void sGossipSelect(Player* /*player*/, uint32 sender, uint32 action)
+ void sGossipSelect(Player* /*player*/, uint32 sender, uint32 action) OVERRIDE
{
if (_instance->GetBossState(DATA_VAULT_OF_LIGHTS) == DONE)
return;
@@ -346,7 +346,7 @@ class npc_brann_bronzebeard_anraphet : public CreatureScript
}
}
- void DoAction(int32 action)
+ void DoAction(int32 action) OVERRIDE
{
switch (action)
{
@@ -369,7 +369,7 @@ class npc_brann_bronzebeard_anraphet : public CreatureScript
}
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
events.Update(diff);
@@ -419,7 +419,7 @@ class npc_brann_bronzebeard_anraphet : public CreatureScript
}
}
- void MovementInform(uint32 movementType, uint32 pointId)
+ void MovementInform(uint32 movementType, uint32 pointId) OVERRIDE
{
if (movementType != POINT_MOTION_TYPE)
return;
@@ -457,7 +457,7 @@ class npc_brann_bronzebeard_anraphet : public CreatureScript
InstanceScript* _instance;
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return GetHallsOfOriginationAI<npc_brann_bronzebeard_anraphetAI>(creature);
}
diff --git a/src/server/scripts/Kalimdor/HallsOfOrigination/boss_earthrager_ptah.cpp b/src/server/scripts/Kalimdor/HallsOfOrigination/boss_earthrager_ptah.cpp
index 530255fddcd..b162463714e 100644
--- a/src/server/scripts/Kalimdor/HallsOfOrigination/boss_earthrager_ptah.cpp
+++ b/src/server/scripts/Kalimdor/HallsOfOrigination/boss_earthrager_ptah.cpp
@@ -132,7 +132,7 @@ public:
player->GetSession()->SendPacket(data);
}
- void Reset()
+ void Reset() OVERRIDE
{
_summonDeaths = 0;
_hasDispersed = false;
@@ -144,7 +144,7 @@ public:
events.ScheduleEvent(EVENT_EARTH_SPIKE, urand(16000, 21000), 0, PHASE_NORMAL);
}
- void DamageTaken(Unit* /*attacker*/, uint32& damage)
+ void DamageTaken(Unit* /*attacker*/, uint32& damage) OVERRIDE
{
if (me->HealthBelowPctDamaged(50, damage) && (events.GetPhaseMask() & PHASE_MASK_NORMAL) && !_hasDispersed)
{
@@ -178,7 +178,7 @@ public:
}
}
- void SetData(uint32 index, uint32 /*value*/)
+ void SetData(uint32 index, uint32 /*value*/) OVERRIDE
{
if (index == DATA_SUMMON_DEATHS)
{
@@ -195,14 +195,14 @@ public:
}
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
instance->SendEncounterUnit(ENCOUNTER_FRAME_ENGAGE, me, 1);
Talk(SAY_AGGRO);
_EnterCombat();
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
instance->SendEncounterUnit(ENCOUNTER_FRAME_DISENGAGE, me);
Talk(SAY_DEATH);
@@ -210,14 +210,14 @@ public:
Cleanup();
}
- void JustReachedHome()
+ void JustReachedHome() OVERRIDE
{
instance->SendEncounterUnit(ENCOUNTER_FRAME_DISENGAGE, me);
_JustReachedHome();
instance->SetBossState(DATA_EARTHRAGER_PTAH, FAIL);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim() || !CheckInRoom())
return;
@@ -266,7 +266,7 @@ public:
bool _hasDispersed;
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return GetHallsOfOriginationAI<boss_earthrager_ptahAI>(creature);
}
@@ -286,13 +286,13 @@ class spell_earthrager_ptah_flame_bolt : public SpellScriptLoader
Trinity::Containers::RandomResizeList(targets, GetCaster()->GetMap()->IsHeroic() ? 3 : 2);
}
- void Register()
+ void Register() OVERRIDE
{
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_earthrager_ptah_flame_bolt_SpellScript::FilterTargets, EFFECT_0, TARGET_UNIT_SRC_AREA_ENEMY);
}
};
- SpellScript* GetSpellScript() const
+ SpellScript* GetSpellScript() const OVERRIDE
{
return new spell_earthrager_ptah_flame_bolt_SpellScript();
}
diff --git a/src/server/scripts/Kalimdor/HallsOfOrigination/boss_temple_guardian_anhuur.cpp b/src/server/scripts/Kalimdor/HallsOfOrigination/boss_temple_guardian_anhuur.cpp
index 61110a3454e..6d967883646 100644
--- a/src/server/scripts/Kalimdor/HallsOfOrigination/boss_temple_guardian_anhuur.cpp
+++ b/src/server/scripts/Kalimdor/HallsOfOrigination/boss_temple_guardian_anhuur.cpp
@@ -93,7 +93,7 @@ public:
}
}
- void Reset()
+ void Reset() OVERRIDE
{
_phase = PHASE_FIRST_SHIELD;
_oldPhase = PHASE_FIRST_SHIELD;
@@ -105,7 +105,7 @@ public:
events.ScheduleEvent(EVENT_BURNING_LIGHT, 12000);
}
- void DamageTaken(Unit* /*attacker*/, uint32& damage)
+ void DamageTaken(Unit* /*attacker*/, uint32& damage) OVERRIDE
{
if ((me->HealthBelowPctDamaged(66, damage) && _phase == PHASE_FIRST_SHIELD) ||
(me->HealthBelowPctDamaged(33, damage) && _phase == PHASE_SECOND_SHIELD))
@@ -151,7 +151,7 @@ public:
}
}
- void DoAction(int32 action)
+ void DoAction(int32 action) OVERRIDE
{
if (action == ACTION_DISABLE_BEACON)
{
@@ -165,34 +165,34 @@ public:
}
}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
instance->SendEncounterUnit(ENCOUNTER_FRAME_ENGAGE, me, 1);
Talk(SAY_AGGRO);
_EnterCombat();
}
- void JustDied(Unit* /*killer*/)
+ void JustDied(Unit* /*killer*/) OVERRIDE
{
instance->SendEncounterUnit(ENCOUNTER_FRAME_DISENGAGE, me);
Talk(SAY_DEATH);
_JustDied();
}
- void KilledUnit(Unit* victim)
+ void KilledUnit(Unit* victim) OVERRIDE
{
if (victim->GetTypeId() == TYPEID_PLAYER)
Talk(SAY_KILL);
}
- void JustReachedHome()
+ void JustReachedHome() OVERRIDE
{
instance->SendEncounterUnit(ENCOUNTER_FRAME_DISENGAGE, me);
_JustReachedHome();
instance->SetBossState(DATA_TEMPLE_GUARDIAN_ANHUUR, FAIL);
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim() || !CheckInRoom() || me->GetCurrentSpell(CURRENT_CHANNELED_SPELL) || _phase == PHASE_SHIELDED)
return;
@@ -257,7 +257,7 @@ public:
uint8 _beacons;
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return GetHallsOfOriginationAI<boss_temple_guardian_anhuurAI>(creature);
}
@@ -289,13 +289,13 @@ class spell_anhuur_shield_of_light : public SpellScriptLoader
}
}
- void Register()
+ void Register() OVERRIDE
{
OnObjectAreaTargetSelect += SpellObjectAreaTargetSelectFn(spell_anhuur_shield_of_light_SpellScript::FilterTargets, EFFECT_1, TARGET_UNIT_SRC_AREA_ENTRY);
}
};
- SpellScript* GetSpellScript() const
+ SpellScript* GetSpellScript() const OVERRIDE
{
return new spell_anhuur_shield_of_light_SpellScript();
}
@@ -323,14 +323,14 @@ class spell_anhuur_disable_beacon_beams : public SpellScriptLoader
anhuur->AI()->DoAction(ACTION_DISABLE_BEACON);
}
- void Register()
+ void Register() OVERRIDE
{
OnEffectHitTarget += SpellEffectFn(spell_anhuur_disable_beacon_beams_SpellScript::HandleScript, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
OnEffectHit += SpellEffectFn(spell_anhuur_disable_beacon_beams_SpellScript::Notify, EFFECT_0, SPELL_EFFECT_SCRIPT_EFFECT);
}
};
- SpellScript* GetSpellScript() const
+ SpellScript* GetSpellScript() const OVERRIDE
{
return new spell_anhuur_disable_beacon_beams_SpellScript();
}
@@ -351,13 +351,13 @@ class spell_anhuur_activate_beacons : public SpellScriptLoader
GetHitGObj()->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE);
}
- void Register()
+ void Register() OVERRIDE
{
OnEffectHitTarget += SpellEffectFn(spell_anhuur_activate_beacons_SpellScript::Activate, EFFECT_0, SPELL_EFFECT_ACTIVATE_OBJECT);
}
};
- SpellScript* GetSpellScript() const
+ SpellScript* GetSpellScript() const OVERRIDE
{
return new spell_anhuur_activate_beacons_SpellScript();
}
diff --git a/src/server/scripts/Kalimdor/HallsOfOrigination/instance_halls_of_origination.cpp b/src/server/scripts/Kalimdor/HallsOfOrigination/instance_halls_of_origination.cpp
index 8c160bdc6f7..6c443097523 100644
--- a/src/server/scripts/Kalimdor/HallsOfOrigination/instance_halls_of_origination.cpp
+++ b/src/server/scripts/Kalimdor/HallsOfOrigination/instance_halls_of_origination.cpp
@@ -270,7 +270,7 @@ class instance_halls_of_origination : public InstanceMapScript
uint32 _deadElementals;
};
- InstanceScript* GetInstanceScript(InstanceMap* map) const
+ InstanceScript* GetInstanceScript(InstanceMap* map) const OVERRIDE
{
return new instance_halls_of_origination_InstanceMapScript(map);
}
diff --git a/src/server/scripts/Kalimdor/zone_desolace.cpp b/src/server/scripts/Kalimdor/zone_desolace.cpp
index ab37f94ce40..2a996662133 100644
--- a/src/server/scripts/Kalimdor/zone_desolace.cpp
+++ b/src/server/scripts/Kalimdor/zone_desolace.cpp
@@ -108,7 +108,7 @@ public:
}
};
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_aged_dying_ancient_kodoAI(creature);
}
diff --git a/src/server/scripts/Kalimdor/zone_durotar.cpp b/src/server/scripts/Kalimdor/zone_durotar.cpp
index 6b82ee99f0a..43396722f1a 100644
--- a/src/server/scripts/Kalimdor/zone_durotar.cpp
+++ b/src/server/scripts/Kalimdor/zone_durotar.cpp
@@ -43,7 +43,7 @@ class npc_lazy_peon : public CreatureScript
public:
npc_lazy_peon() : CreatureScript("npc_lazy_peon") { }
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_lazy_peonAI(creature);
}
@@ -57,7 +57,7 @@ public:
uint32 RebuffTimer;
bool work;
- void Reset()
+ void Reset() OVERRIDE
{
PlayerGUID = 0;
RebuffTimer = 0;
@@ -86,7 +86,7 @@ public:
}
}
- void UpdateAI(uint32 Diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (work == true)
me->HandleEmoteCommand(EMOTE_ONESHOT_WORK_CHOPWOOD);
@@ -125,7 +125,7 @@ class spell_voodoo : public SpellScriptLoader
{
PrepareSpellScript(spell_voodoo_SpellScript);
- bool Validate(SpellInfo const* /*spell*/)
+ bool Validate(SpellInfo const* /*spell*/) OVERRIDE
{
if (!sSpellMgr->GetSpellInfo(SPELL_BREW) || !sSpellMgr->GetSpellInfo(SPELL_GHOSTLY) ||
!sSpellMgr->GetSpellInfo(SPELL_HEX1) || !sSpellMgr->GetSpellInfo(SPELL_HEX2) ||
@@ -142,13 +142,13 @@ class spell_voodoo : public SpellScriptLoader
GetCaster()->CastSpell(target, spellid, false);
}
- void Register()
+ void Register() OVERRIDE
{
OnEffectHitTarget += SpellEffectFn(spell_voodoo_SpellScript::HandleDummy, EFFECT_0, SPELL_EFFECT_DUMMY);
}
};
- SpellScript* GetSpellScript() const
+ SpellScript* GetSpellScript() const OVERRIDE
{
return new spell_voodoo_SpellScript();
}
diff --git a/src/server/scripts/Kalimdor/zone_mulgore.cpp b/src/server/scripts/Kalimdor/zone_mulgore.cpp
index 010eaff4e22..54d1925316b 100644
--- a/src/server/scripts/Kalimdor/zone_mulgore.cpp
+++ b/src/server/scripts/Kalimdor/zone_mulgore.cpp
@@ -90,7 +90,7 @@ class npc_kyle_frenzied : public CreatureScript
public:
npc_kyle_frenzied() : CreatureScript("npc_kyle_frenzied") { }
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_kyle_frenziedAI (creature);
}
@@ -105,7 +105,7 @@ public:
uint32 EventTimer;
uint8 EventPhase;
- void Reset()
+ void Reset() OVERRIDE
{
EventActive = false;
IsMovingToLunch = false;
@@ -137,7 +137,7 @@ public:
}
}
- void MovementInform(uint32 Type, uint32 PointId)
+ void MovementInform(uint32 type, uint32 pointId) OVERRIDE
{
if (Type != POINT_MOTION_TYPE || !EventActive)
return;
@@ -146,7 +146,7 @@ public:
IsMovingToLunch = false;
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (EventActive)
{
diff --git a/src/server/scripts/Kalimdor/zone_tanaris.cpp b/src/server/scripts/Kalimdor/zone_tanaris.cpp
index 82e89a18c0e..cc631df14a6 100644
--- a/src/server/scripts/Kalimdor/zone_tanaris.cpp
+++ b/src/server/scripts/Kalimdor/zone_tanaris.cpp
@@ -54,7 +54,7 @@ class npc_aquementas : public CreatureScript
public:
npc_aquementas() : CreatureScript("npc_aquementas") { }
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_aquementasAI (creature);
}
@@ -70,7 +70,7 @@ public:
uint32 FrostShockTimer;
uint32 AquaJetTimer;
- void Reset()
+ void Reset() OVERRIDE
{
SendItemTimer = 0;
SwitchFactionTimer = 10000;
@@ -102,7 +102,7 @@ public:
Talk(AGGRO_YELL_AQUE, who->GetGUID());
}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (isFriendly)
{
@@ -171,7 +171,7 @@ class npc_custodian_of_time : public CreatureScript
public:
npc_custodian_of_time() : CreatureScript("npc_custodian_of_time") { }
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_custodian_of_timeAI(creature);
}
@@ -265,10 +265,10 @@ public:
}
}
- void EnterCombat(Unit* /*who*/) {}
+ void EnterCombat(Unit* /*who*/) OVERRIDE { }
void Reset() {}
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
npc_escortAI::UpdateAI(diff);
}
@@ -361,7 +361,7 @@ public:
return true;
}
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_OOX17AI(creature);
}
@@ -400,12 +400,12 @@ public:
void Reset(){}
- void EnterCombat(Unit* /*who*/)
+ void EnterCombat(Unit* /*who*/) OVERRIDE
{
Talk(SAY_OOX_AGGRO);
}
- void JustSummoned(Creature* summoned)
+ void JustSummoned(Creature* summoned) OVERRIDE
{
summoned->AI()->AttackStart(me);
}
@@ -451,7 +451,7 @@ public:
return true;
}
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_toogaAI(creature);
}
@@ -466,7 +466,7 @@ public:
uint64 TortaGUID;
- void Reset()
+ void Reset() OVERRIDE
{
CheckSpeechTimer = 2500;
PostEventTimer = 1000;
diff --git a/src/server/scripts/Kalimdor/zone_thunder_bluff.cpp b/src/server/scripts/Kalimdor/zone_thunder_bluff.cpp
index 74efa2ffaff..b8430f44155 100644
--- a/src/server/scripts/Kalimdor/zone_thunder_bluff.cpp
+++ b/src/server/scripts/Kalimdor/zone_thunder_bluff.cpp
@@ -48,7 +48,7 @@ class npc_cairne_bloodhoof : public CreatureScript
public:
npc_cairne_bloodhoof() : CreatureScript("npc_cairne_bloodhoof") { }
- CreatureAI* GetAI(Creature* creature) const
+ CreatureAI* GetAI(Creature* creature) const OVERRIDE
{
return new npc_cairne_bloodhoofAI (creature);
}
@@ -63,7 +63,7 @@ public:
uint32 ThunderclapTimer;
uint32 UppercutTimer;
- void Reset()
+ void Reset() OVERRIDE
{
BerserkerChargeTimer = 30000;
CleaveTimer = 5000;
@@ -72,9 +72,9 @@ public:
UppercutTimer = 10000;
}
- void EnterCombat(Unit* /*who*/) {}
+ void EnterCombat(Unit* /*who*/) OVERRIDE { }
- void UpdateAI(uint32 diff)
+ void UpdateAI(uint32 diff) OVERRIDE
{
if (!UpdateVictim())
return;