Core/Misc: Remove obsolete C++11 backward compatibility macros

OVERRIDE, FINAL, DELETE_MEMBER
This commit is contained in:
Dehravor
2014-04-29 16:35:11 +02:00
parent 414554aefa
commit 24ae6a6802
639 changed files with 9594 additions and 9604 deletions
+2 -2
View File
@@ -83,8 +83,8 @@ namespace VMAP
void getModelInstances(ModelInstance* &models, uint32 &count);
private:
StaticMapTree(StaticMapTree const& right) DELETE_MEMBER;
StaticMapTree& operator=(StaticMapTree const& right) DELETE_MEMBER;
StaticMapTree(StaticMapTree const& right) = delete;
StaticMapTree& operator=(StaticMapTree const& right) = delete;
};
struct AreaInfo
+2 -2
View File
@@ -264,8 +264,8 @@ class UnitAI
virtual void sOnGameEvent(bool /*start*/, uint16 /*eventId*/) { }
private:
UnitAI(UnitAI const& right) DELETE_MEMBER;
UnitAI& operator=(UnitAI const& right) DELETE_MEMBER;
UnitAI(UnitAI const& right) = delete;
UnitAI& operator=(UnitAI const& right) = delete;
};
class PlayerAI : public UnitAI
@@ -545,7 +545,7 @@ class BattlegroundSA : public Battleground
/// Return the nearest graveyard where player can respawn
WorldSafeLocsEntry const* GetClosestGraveYard(Player* player);
/// Called when someone activates an event
void ProcessEvent(WorldObject* /*obj*/, uint32 /*eventId*/, WorldObject* /*invoker*/ = NULL) OVERRIDE;
void ProcessEvent(WorldObject* /*obj*/, uint32 /*eventId*/, WorldObject* /*invoker*/ = NULL) override;
/// Called when a player click on flag (graveyard flag)
void EventPlayerClickedOnFlag(Player* source, GameObject* go);
/// Called when a player clicked on relic
@@ -572,10 +572,10 @@ class BattlegroundSA : public Battleground
void UpdatePlayerScore(Player* Source, uint32 type, uint32 value, bool doAddHonor = true);
// Achievement: Not Even a Scratch
bool CheckAchievementCriteriaMeet(uint32 criteriaId, Player const* source, Unit const* target = NULL, uint32 miscValue = 0) OVERRIDE;
bool CheckAchievementCriteriaMeet(uint32 criteriaId, Player const* source, Unit const* target = NULL, uint32 miscValue = 0) override;
// Control Phase Shift
bool IsSpellAllowed(uint32 spellId, Player const* player) const OVERRIDE;
bool IsSpellAllowed(uint32 spellId, Player const* player) const override;
private:
+2 -2
View File
@@ -515,9 +515,9 @@ class Creature : public Unit, public GridObject<Creature>, public MapObject
void UpdateMaxHealth();
void UpdateMaxPower(Powers power);
void UpdateAttackPowerAndDamage(bool ranged = false);
void CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, bool addTotalPct, float& minDamage, float& maxDamage) OVERRIDE;
void CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, bool addTotalPct, float& minDamage, float& maxDamage) override;
void SetCanDualWield(bool value) OVERRIDE;
void SetCanDualWield(bool value) override;
int8 GetOriginalEquipmentId() const { return m_originalEquipmentId; }
uint8 GetCurrentEquipmentId() { return m_equipmentId; }
void SetCurrentEquipmentId(uint8 id) { m_equipmentId = id; }
@@ -95,7 +95,7 @@ class Guardian : public Minion
void UpdateMaxHealth();
void UpdateMaxPower(Powers power);
void UpdateAttackPowerAndDamage(bool ranged = false);
void UpdateDamagePhysical(WeaponAttackType attType) OVERRIDE;
void UpdateDamagePhysical(WeaponAttackType attType) override;
int32 GetBonusDamage() const { return m_bonusSpellDamage; }
void SetBonusDamage(int32 damage);
@@ -41,7 +41,7 @@ class DynamicObject : public WorldObject, public GridObject<DynamicObject>, publ
void AddToWorld();
void RemoveFromWorld();
void CleanupsBeforeDelete(bool finalCleanup = true) OVERRIDE;
void CleanupsBeforeDelete(bool finalCleanup = true) override;
bool CreateDynamicObject(uint32 guidlow, Unit* caster, uint32 spellId, Position const& pos, float radius, DynamicObjectType type);
void Update(uint32 p_time);
+2 -2
View File
@@ -269,8 +269,8 @@ class Object
// for output helpfull error messages from asserts
bool PrintIndexError(uint32 index, bool set) const;
Object(Object const& right) DELETE_MEMBER;
Object& operator=(Object const& right) DELETE_MEMBER;
Object(Object const& right) = delete;
Object& operator=(Object const& right) = delete;
};
struct Position
+1 -1
View File
@@ -95,7 +95,7 @@ class Pet : public Guardian
void UpdateMaxHealth();
void UpdateMaxPower(Powers power);
void UpdateAttackPowerAndDamage(bool ranged = false);
void UpdateDamagePhysical(WeaponAttackType attType) OVERRIDE;
void UpdateDamagePhysical(WeaponAttackType attType) override;
*/
void ToggleAutocast(SpellInfo const* spellInfo, bool apply);
+2 -2
View File
@@ -1511,7 +1511,7 @@ class Player : public Unit, public GridObject<Player>
Unit* GetSelectedUnit() const;
Player* GetSelectedPlayer() const;
void SetTarget(uint64 /*guid*/) OVERRIDE { } /// Used for serverside target changes, does not apply to players
void SetTarget(uint64 /*guid*/) override { } /// Used for serverside target changes, does not apply to players
void SetSelection(uint64 guid) { SetUInt64Value(UNIT_FIELD_TARGET, guid); }
uint8 GetComboPoints() const { return m_comboPoints; }
@@ -1757,7 +1757,7 @@ class Player : public Unit, public GridObject<Player>
void UpdateRating(CombatRating cr);
void UpdateAllRatings();
void CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, bool addTotalPct, float& minDamage, float& maxDamage) OVERRIDE;
void CalculateMinMaxDamage(WeaponAttackType attType, bool normalized, bool addTotalPct, float& minDamage, float& maxDamage) override;
void UpdateDefenseBonusesMod();
inline void RecalculateRating(CombatRating cr) { ApplyRatingMod(cr, 0, true);}
+1 -1
View File
@@ -53,7 +53,7 @@ class Totem : public Minion
void UpdateMaxHealth() { }
void UpdateMaxPower(Powers /*power*/) { }
void UpdateAttackPowerAndDamage(bool /*ranged*/) { }
void UpdateDamagePhysical(WeaponAttackType /*attType*/) OVERRIDE { }
void UpdateDamagePhysical(WeaponAttackType /*attType*/) override { }
bool IsImmunedToSpellEffect(SpellInfo const* spellInfo, uint32 index) const;
@@ -34,11 +34,11 @@ class Transport : public GameObject, public TransportBase
~Transport();
bool Create(uint32 guidlow, uint32 entry, uint32 mapid, float x, float y, float z, float ang, uint32 animprogress);
void CleanupsBeforeDelete(bool finalCleanup = true) OVERRIDE;
void CleanupsBeforeDelete(bool finalCleanup = true) override;
void Update(uint32 diff) OVERRIDE;
void Update(uint32 diff) override;
void BuildUpdate(UpdateDataMapType& data_map) OVERRIDE;
void BuildUpdate(UpdateDataMapType& data_map) override;
void AddPassenger(WorldObject* passenger);
void RemovePassenger(WorldObject* passenger);
@@ -66,13 +66,13 @@ class Transport : public GameObject, public TransportBase
TempSummon* SummonPassenger(uint32 entry, Position const& pos, TempSummonType summonType, SummonPropertiesEntry const* properties = NULL, uint32 duration = 0, Unit* summoner = NULL, uint32 spellId = 0, uint32 vehId = 0);
/// This method transforms supplied transport offsets into global coordinates
void CalculatePassengerPosition(float& x, float& y, float& z, float* o = NULL) const OVERRIDE
void CalculatePassengerPosition(float& x, float& y, float& z, float* o = NULL) const override
{
TransportBase::CalculatePassengerPosition(x, y, z, o, GetPositionX(), GetPositionY(), GetPositionZ(), GetOrientation());
}
/// This method transforms supplied global coordinates into local offsets
void CalculatePassengerOffset(float& x, float& y, float& z, float* o = NULL) const OVERRIDE
void CalculatePassengerOffset(float& x, float& y, float& z, float* o = NULL) const override
{
TransportBase::CalculatePassengerOffset(x, y, z, o, GetPositionX(), GetPositionY(), GetPositionZ(), GetOrientation());
}
+14 -14
View File
@@ -198,7 +198,7 @@ class SpellScriptLoader : public ScriptObject
public:
bool IsDatabaseBound() const FINAL { return true; }
bool IsDatabaseBound() const final { return true; }
// Should return a fully valid SpellScript pointer.
virtual SpellScript* GetSpellScript() const { return NULL; }
@@ -356,7 +356,7 @@ class InstanceMapScript : public ScriptObject, public MapScript<InstanceMap>
public:
bool IsDatabaseBound() const FINAL { return true; }
bool IsDatabaseBound() const final { return true; }
// Gets an InstanceScript object for this instance.
virtual InstanceScript* GetInstanceScript(InstanceMap* /*map*/) const { return NULL; }
@@ -377,7 +377,7 @@ class ItemScript : public ScriptObject
public:
bool IsDatabaseBound() const FINAL { return true; }
bool IsDatabaseBound() const final { return true; }
// Called when a dummy spell effect is triggered on the item.
virtual bool OnDummyEffect(Unit* /*caster*/, uint32 /*spellId*/, SpellEffIndex /*effIndex*/, Item* /*target*/) { return false; }
@@ -426,7 +426,7 @@ class CreatureScript : public UnitScript, public UpdatableScript<Creature>
public:
bool IsDatabaseBound() const FINAL { return true; }
bool IsDatabaseBound() const final { return true; }
// Called when a dummy spell effect is triggered on the creature.
virtual bool OnDummyEffect(Unit* /*caster*/, uint32 /*spellId*/, SpellEffIndex /*effIndex*/, Creature* /*target*/) { return false; }
@@ -467,7 +467,7 @@ class GameObjectScript : public ScriptObject, public UpdatableScript<GameObject>
public:
bool IsDatabaseBound() const FINAL { return true; }
bool IsDatabaseBound() const final { return true; }
// Called when a dummy spell effect is triggered on the gameobject.
virtual bool OnDummyEffect(Unit* /*caster*/, uint32 /*spellId*/, SpellEffIndex /*effIndex*/, GameObject* /*target*/) { return false; }
@@ -514,7 +514,7 @@ class AreaTriggerScript : public ScriptObject
public:
bool IsDatabaseBound() const FINAL { return true; }
bool IsDatabaseBound() const final { return true; }
// Called when the area trigger is activated by a player.
virtual bool OnTrigger(Player* /*player*/, AreaTriggerEntry const* /*trigger*/) { return false; }
@@ -528,7 +528,7 @@ class BattlegroundScript : public ScriptObject
public:
bool IsDatabaseBound() const FINAL { return true; }
bool IsDatabaseBound() const final { return true; }
// Should return a fully valid Battleground object for the type ID.
virtual Battleground* GetBattleground() const = 0;
@@ -542,7 +542,7 @@ class OutdoorPvPScript : public ScriptObject
public:
bool IsDatabaseBound() const FINAL { return true; }
bool IsDatabaseBound() const final { return true; }
// Should return a fully valid OutdoorPvP object for the type ID.
virtual OutdoorPvP* GetOutdoorPvP() const = 0;
@@ -568,7 +568,7 @@ class WeatherScript : public ScriptObject, public UpdatableScript<Weather>
public:
bool IsDatabaseBound() const FINAL { return true; }
bool IsDatabaseBound() const final { return true; }
// Called when the weather changes in the zone this script is associated with.
virtual void OnChange(Weather* /*weather*/, WeatherState /*state*/, float /*grade*/) { }
@@ -603,7 +603,7 @@ class ConditionScript : public ScriptObject
public:
bool IsDatabaseBound() const FINAL { return true; }
bool IsDatabaseBound() const final { return true; }
// Called when a single condition is checked for a player.
virtual bool OnConditionCheck(Condition* /*condition*/, ConditionSourceInfo& /*sourceInfo*/) { return true; }
@@ -651,7 +651,7 @@ class TransportScript : public ScriptObject, public UpdatableScript<Transport>
public:
bool IsDatabaseBound() const FINAL { return true; }
bool IsDatabaseBound() const final { return true; }
// Called when a player boards the transport.
virtual void OnAddPassenger(Transport* /*transport*/, Player* /*player*/) { }
@@ -674,7 +674,7 @@ class AchievementCriteriaScript : public ScriptObject
public:
bool IsDatabaseBound() const FINAL { return true; }
bool IsDatabaseBound() const final { return true; }
// Called when an additional criteria is checked.
virtual bool OnCheck(Player* source, Unit* target) = 0;
@@ -776,7 +776,7 @@ class GuildScript : public ScriptObject
public:
bool IsDatabaseBound() const FINAL { return false; }
bool IsDatabaseBound() const final { return false; }
// Called when a member is added to the guild.
virtual void OnAddMember(Guild* /*guild*/, Player* /*player*/, uint8& /*plRank*/) { }
@@ -819,7 +819,7 @@ class GroupScript : public ScriptObject
public:
bool IsDatabaseBound() const FINAL { return false; }
bool IsDatabaseBound() const final { return false; }
// Called when a member is added to a group.
virtual void OnAddMember(Group* /*group*/, uint64 /*guid*/) { }
+6 -6
View File
@@ -140,8 +140,8 @@ protected:
WorldSession* const m_pSession;
private:
PacketFilter(PacketFilter const& right) DELETE_MEMBER;
PacketFilter& operator=(PacketFilter const& right) DELETE_MEMBER;
PacketFilter(PacketFilter const& right) = delete;
PacketFilter& operator=(PacketFilter const& right) = delete;
};
//process only thread-safe packets in Map::Update()
class MapSessionFilter : public PacketFilter
@@ -955,8 +955,8 @@ class WorldSession
OpcodeStatusMap _isOpcodeAllowed; // could be bool array, but wouldn't be practical for game versions with non-linear opcodes
Policy _policy;
DosProtection(DosProtection const& right) DELETE_MEMBER;
DosProtection& operator=(DosProtection const& right) DELETE_MEMBER;
DosProtection(DosProtection const& right) = delete;
DosProtection& operator=(DosProtection const& right) = delete;
} AntiDOS;
private:
@@ -1011,8 +1011,8 @@ class WorldSession
time_t timeLastWhoCommand;
rbac::RBACData* _RBACData;
WorldSession(WorldSession const& right) DELETE_MEMBER;
WorldSession& operator=(WorldSession const& right) DELETE_MEMBER;
WorldSession(WorldSession const& right) = delete;
WorldSession& operator=(WorldSession const& right) = delete;
};
#endif
/// @}
+2 -2
View File
@@ -208,8 +208,8 @@ class WorldSocket : public WorldHandler
uint32 m_Seed;
WorldSocket(WorldSocket const& right) DELETE_MEMBER;
WorldSocket& operator=(WorldSocket const& right) DELETE_MEMBER;
WorldSocket(WorldSocket const& right) = delete;
WorldSocket& operator=(WorldSocket const& right) = delete;
};
#endif /* _WORLDSOCKET_H */
+2 -2
View File
@@ -689,8 +689,8 @@ class Spell
double rand_chance() { return m_caster->GetMap()->mtRand.randExc(100.0); }
#endif
Spell(Spell const& right) DELETE_MEMBER;
Spell& operator=(Spell const& right) DELETE_MEMBER;
Spell(Spell const& right) = delete;
Spell& operator=(Spell const& right) = delete;
};
namespace Trinity
+2 -2
View File
@@ -498,8 +498,8 @@ struct CliCommandHolder
~CliCommandHolder() { free(m_command); }
private:
CliCommandHolder(CliCommandHolder const& right) DELETE_MEMBER;
CliCommandHolder& operator=(CliCommandHolder const& right) DELETE_MEMBER;
CliCommandHolder(CliCommandHolder const& right) = delete;
CliCommandHolder& operator=(CliCommandHolder const& right) = delete;
};
typedef UNORDERED_MAP<uint32, WorldSession*> SessionMap;
+1 -1
View File
@@ -33,7 +33,7 @@ class account_commandscript : public CommandScript
public:
account_commandscript() : CommandScript("account_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand accountSetSecTable[] =
{
@@ -33,7 +33,7 @@ class achievement_commandscript : public CommandScript
public:
achievement_commandscript() : CommandScript("achievement_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand achievementCommandTable[] =
{
+1 -1
View File
@@ -34,7 +34,7 @@ class arena_commandscript : public CommandScript
public:
arena_commandscript() : CommandScript("arena_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand arenaCommandTable[] =
{
+1 -1
View File
@@ -35,7 +35,7 @@ class ban_commandscript : public CommandScript
public:
ban_commandscript() : CommandScript("ban_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand unbanCommandTable[] =
{
+1 -1
View File
@@ -31,7 +31,7 @@ class bf_commandscript : public CommandScript
public:
bf_commandscript() : CommandScript("bf_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand battlefieldcommandTable[] =
{
+1 -1
View File
@@ -33,7 +33,7 @@ class cast_commandscript : public CommandScript
public:
cast_commandscript() : CommandScript("cast_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand castCommandTable[] =
{
+1 -1
View File
@@ -35,7 +35,7 @@ class character_commandscript : public CommandScript
public:
character_commandscript() : CommandScript("character_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand pdumpCommandTable[] =
{
+1 -1
View File
@@ -33,7 +33,7 @@ class cheat_commandscript : public CommandScript
public:
cheat_commandscript() : CommandScript("cheat_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand cheatCommandTable[] =
+1 -1
View File
@@ -41,7 +41,7 @@ class debug_commandscript : public CommandScript
public:
debug_commandscript() : CommandScript("debug_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand debugPlayCommandTable[] =
{
+1 -1
View File
@@ -43,7 +43,7 @@ public:
* @brief Returns the command structure for the system.
*/
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand deserterInstanceCommandTable[] =
{
+1 -1
View File
@@ -37,7 +37,7 @@ class disable_commandscript : public CommandScript
public:
disable_commandscript() : CommandScript("disable_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand removeDisableCommandTable[] =
{
+1 -1
View File
@@ -33,7 +33,7 @@ class event_commandscript : public CommandScript
public:
event_commandscript() : CommandScript("event_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand eventCommandTable[] =
{
+1 -1
View File
@@ -36,7 +36,7 @@ class gm_commandscript : public CommandScript
public:
gm_commandscript() : CommandScript("gm_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand gmCommandTable[] =
{
+1 -1
View File
@@ -35,7 +35,7 @@ class go_commandscript : public CommandScript
public:
go_commandscript() : CommandScript("go_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand goCommandTable[] =
{
+1 -1
View File
@@ -28,7 +28,7 @@ class group_commandscript : public CommandScript
public:
group_commandscript() : CommandScript("group_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand groupCommandTable[] =
{
+1 -1
View File
@@ -33,7 +33,7 @@ class honor_commandscript : public CommandScript
public:
honor_commandscript() : CommandScript("honor_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand honorAddCommandTable[] =
{
+1 -1
View File
@@ -35,7 +35,7 @@ class instance_commandscript : public CommandScript
public:
instance_commandscript() : CommandScript("instance_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand instanceCommandTable[] =
{
+1 -1
View File
@@ -36,7 +36,7 @@ class learn_commandscript : public CommandScript
public:
learn_commandscript() : CommandScript("learn_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand learnAllMyCommandTable[] =
{
+1 -1
View File
@@ -41,7 +41,7 @@ class lfg_commandscript : public CommandScript
public:
lfg_commandscript() : CommandScript("lfg_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand lfgCommandTable[] =
{
+1 -1
View File
@@ -36,7 +36,7 @@ class list_commandscript : public CommandScript
public:
list_commandscript() : CommandScript("list_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand listCommandTable[] =
{
+1 -1
View File
@@ -37,7 +37,7 @@ class lookup_commandscript : public CommandScript
public:
lookup_commandscript() : CommandScript("lookup_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand lookupPlayerCommandTable[] =
{
+1 -1
View File
@@ -42,7 +42,7 @@ class misc_commandscript : public CommandScript
public:
misc_commandscript() : CommandScript("misc_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand commandTable[] =
{
+1 -1
View File
@@ -41,7 +41,7 @@ class mmaps_commandscript : public CommandScript
public:
mmaps_commandscript() : CommandScript("mmaps_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand mmapCommandTable[] =
{
+1 -1
View File
@@ -36,7 +36,7 @@ class modify_commandscript : public CommandScript
public:
modify_commandscript() : CommandScript("modify_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand modifyspeedCommandTable[] =
{
+1 -1
View File
@@ -149,7 +149,7 @@ class npc_commandscript : public CommandScript
public:
npc_commandscript() : CommandScript("npc_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand npcAddCommandTable[] =
{
+1 -1
View File
@@ -27,7 +27,7 @@ class pet_commandscript : public CommandScript
public:
pet_commandscript() : CommandScript("pet_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand petCommandTable[] =
{
+1 -1
View File
@@ -33,7 +33,7 @@ class quest_commandscript : public CommandScript
public:
quest_commandscript() : CommandScript("quest_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand questCommandTable[] =
{
+1 -1
View File
@@ -35,7 +35,7 @@ class reset_commandscript : public CommandScript
public:
reset_commandscript() : CommandScript("reset_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand resetCommandTable[] =
{
+1 -1
View File
@@ -27,7 +27,7 @@ class send_commandscript : public CommandScript
public:
send_commandscript() : CommandScript("send_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand sendCommandTable[] =
{
+1 -1
View File
@@ -35,7 +35,7 @@ class server_commandscript : public CommandScript
public:
server_commandscript() : CommandScript("server_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand serverIdleRestartCommandTable[] =
{
+1 -1
View File
@@ -35,7 +35,7 @@ class tele_commandscript : public CommandScript
public:
tele_commandscript() : CommandScript("tele_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand teleCommandTable[] =
{
+1 -1
View File
@@ -33,7 +33,7 @@ class titles_commandscript : public CommandScript
public:
titles_commandscript() : CommandScript("titles_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand titlesSetCommandTable[] =
{
+1 -1
View File
@@ -34,7 +34,7 @@ class wp_commandscript : public CommandScript
public:
wp_commandscript() : CommandScript("wp_commandscript") { }
ChatCommand* GetCommands() const OVERRIDE
ChatCommand* GetCommands() const override
{
static ChatCommand wpCommandTable[] =
{
@@ -86,7 +86,7 @@ class npc_av_marshal_or_warmaster : public CreatureScript
{
npc_av_marshal_or_warmasterAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE
void Reset() override
{
events.Reset();
events.ScheduleEvent(EVENT_CHARGE_TARGET, urand(2 * IN_MILLISECONDS, 12 * IN_MILLISECONDS));
@@ -99,12 +99,12 @@ class npc_av_marshal_or_warmaster : public CreatureScript
_hasAura = false;
}
void JustRespawned() OVERRIDE
void JustRespawned() override
{
Reset();
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
// I have a feeling this isn't blizzlike, but owell, I'm only passing by and cleaning up.
if (!_hasAura)
@@ -170,7 +170,7 @@ class npc_av_marshal_or_warmaster : public CreatureScript
bool _hasAura;
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new npc_av_marshal_or_warmasterAI(creature);
}
@@ -61,14 +61,14 @@ public:
uint64 balindaGUID;
uint32 resetTimer;
void Reset() OVERRIDE
void Reset() override
{
waterBoltTimer = 3 * IN_MILLISECONDS;
resetTimer = 5 * IN_MILLISECONDS;
balindaGUID = 0;
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -92,7 +92,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new npc_water_elementalAI(creature);
}
@@ -116,7 +116,7 @@ public:
SummonList summons;
void Reset() OVERRIDE
void Reset() override
{
arcaneExplosionTimer = urand(5 * IN_MILLISECONDS, 15 * IN_MILLISECONDS);
coneOfColdTimer = 8 * IN_MILLISECONDS;
@@ -128,17 +128,17 @@ public:
summons.DespawnAll();
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
Talk(YELL_AGGRO);
}
void JustRespawned() OVERRIDE
void JustRespawned() override
{
Reset();
}
void JustSummoned(Creature* summoned) OVERRIDE
void JustSummoned(Creature* summoned) override
{
CAST_AI(npc_water_elemental::npc_water_elementalAI, summoned->AI())->balindaGUID = me->GetGUID();
summoned->AI()->AttackStart(SelectTarget(SELECT_TARGET_RANDOM, 0, 50, true));
@@ -146,12 +146,12 @@ public:
summons.Summon(summoned);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
summons.DespawnAll();
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -202,7 +202,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_balindaAI(creature);
}
@@ -54,7 +54,7 @@ public:
uint32 YellTimer;
uint32 ResetTimer;
void Reset() OVERRIDE
void Reset() override
{
WhirlwindTimer = urand(1 * IN_MILLISECONDS, 20 * IN_MILLISECONDS);
Whirlwind2Timer = urand(1 * IN_MILLISECONDS, 20 * IN_MILLISECONDS);
@@ -64,18 +64,18 @@ public:
YellTimer = urand(20 * IN_MILLISECONDS, 30 * IN_MILLISECONDS); //20 to 30 seconds
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
Talk(YELL_AGGRO);
}
void JustRespawned() OVERRIDE
void JustRespawned() override
{
Reset();
Talk(YELL_RESPAWN);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -125,7 +125,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_drektharAI(creature);
}
@@ -49,7 +49,7 @@ public:
uint32 MortalStrikeTimer;
uint32 ResetTimer;
void Reset() OVERRIDE
void Reset() override
{
CleaveTimer = urand(1 * IN_MILLISECONDS, 9 * IN_MILLISECONDS);
FrighteningShoutTimer = urand(2 * IN_MILLISECONDS, 19 * IN_MILLISECONDS);
@@ -59,17 +59,17 @@ public:
ResetTimer = 5 * IN_MILLISECONDS;
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
Talk(YELL_AGGRO);
}
void JustRespawned() OVERRIDE
void JustRespawned() override
{
Reset();
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -119,7 +119,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_galvangarAI(creature);
}
@@ -50,7 +50,7 @@ public:
uint32 ResetTimer;
uint32 YellTimer;
void Reset() OVERRIDE
void Reset() override
{
AvatarTimer = 3 * IN_MILLISECONDS;
ThunderclapTimer = 4 * IN_MILLISECONDS;
@@ -59,12 +59,12 @@ public:
YellTimer = urand(20 * IN_MILLISECONDS, 30 * IN_MILLISECONDS);
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
Talk(YELL_AGGRO);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -108,7 +108,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_vanndarAI(creature);
}
@@ -29,7 +29,7 @@ class go_shadowforge_brazier : public GameObjectScript
public:
go_shadowforge_brazier() : GameObjectScript("go_shadowforge_brazier") { }
bool OnGossipHello(Player* /*player*/, GameObject* go) OVERRIDE
bool OnGossipHello(Player* /*player*/, GameObject* go) override
{
if (InstanceScript* instance = go->GetInstanceScript())
{
@@ -82,7 +82,7 @@ class at_ring_of_law : public AreaTriggerScript
public:
at_ring_of_law() : AreaTriggerScript("at_ring_of_law") { }
bool OnTrigger(Player* player, const AreaTriggerEntry* /*at*/) OVERRIDE
bool OnTrigger(Player* player, const AreaTriggerEntry* /*at*/) override
{
if (InstanceScript* instance = player->GetInstanceScript())
{
@@ -115,7 +115,7 @@ class npc_grimstone : public CreatureScript
public:
npc_grimstone() : CreatureScript("npc_grimstone") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<npc_grimstoneAI>(creature);
}
@@ -142,7 +142,7 @@ public:
bool CanWalk;
void Reset() OVERRIDE
void Reset() override
{
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
@@ -181,7 +181,7 @@ public:
MobDeath_Timer = 2500;
}
void WaypointReached(uint32 waypointId) OVERRIDE
void WaypointReached(uint32 waypointId) override
{
switch (waypointId)
{
@@ -219,7 +219,7 @@ public:
instance->HandleGameObject(instance->GetData64(id), open);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (MobDeath_Timer)
{
@@ -346,7 +346,7 @@ class npc_phalanx : public CreatureScript
public:
npc_phalanx() : CreatureScript("npc_phalanx") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new npc_phalanxAI(creature);
}
@@ -359,14 +359,14 @@ public:
uint32 FireballVolley_Timer;
uint32 MightyBlow_Timer;
void Reset() OVERRIDE
void Reset() override
{
ThunderClap_Timer = 12000;
FireballVolley_Timer = 0;
MightyBlow_Timer = 15000;
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
//Return since we have no target
if (!UpdateVictim())
@@ -424,7 +424,7 @@ class npc_kharan_mighthammer : public CreatureScript
public:
npc_kharan_mighthammer() : CreatureScript("npc_kharan_mighthammer") { }
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) OVERRIDE
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override
{
player->PlayerTalkClass->ClearMenus();
switch (action)
@@ -473,7 +473,7 @@ public:
return true;
}
bool OnGossipHello(Player* player, Creature* creature) OVERRIDE
bool OnGossipHello(Player* player, Creature* creature) override
{
if (creature->IsQuestGiver())
player->PrepareQuestMenu(creature->GetGUID());
@@ -518,7 +518,7 @@ class npc_lokhtos_darkbargainer : public CreatureScript
public:
npc_lokhtos_darkbargainer() : CreatureScript("npc_lokhtos_darkbargainer") { }
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) OVERRIDE
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override
{
player->PlayerTalkClass->ClearMenus();
if (action == GOSSIP_ACTION_INFO_DEF + 1)
@@ -532,7 +532,7 @@ public:
return true;
}
bool OnGossipHello(Player* player, Creature* creature) OVERRIDE
bool OnGossipHello(Player* player, Creature* creature) override
{
if (creature->IsQuestGiver())
player->PrepareQuestMenu(creature->GetGUID());
@@ -571,7 +571,7 @@ class npc_dughal_stormwing : public CreatureScript
public:
npc_dughal_stormwing() : CreatureScript("npc_dughal_stormwing") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
npc_dughal_stormwingAI* dughal_stormwingAI = new npc_dughal_stormwingAI(creature);
@@ -582,7 +582,7 @@ public:
return dughal_stormwingAI;
}
bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action) OVERRIDE
bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action) override
{
player->PlayerTalkClass->ClearMenus();
if (action == GOSSIP_ACTION_INFO_DEF + 1)
@@ -595,7 +595,7 @@ public:
return true;
}
bool OnGossipHello(Player* player, Creature* creature) OVERRIDE
bool OnGossipHello(Player* player, Creature* creature) override
{
if (player->GetQuestStatus(QUEST_JAIL_BREAK) == QUEST_STATUS_INCOMPLETE && instance->GetData(DATA_QUEST_JAIL_BREAK) == ENCOUNTER_STATE_IN_PROGRESS)
{
@@ -609,7 +609,7 @@ public:
{
npc_dughal_stormwingAI(Creature* creature) : npc_escortAI(creature) { }
void WaypointReached(uint32 waypointId) OVERRIDE
void WaypointReached(uint32 waypointId) override
{
switch (waypointId)
{
@@ -628,10 +628,10 @@ public:
}
}
void EnterCombat(Unit* who) OVERRIDE { }
void Reset() OVERRIDE { }
void EnterCombat(Unit* who) override { }
void Reset() override { }
void JustDied(Unit* killer) OVERRIDE
void JustDied(Unit* killer) override
{
if (IsBeingEscorted && killer == me)
{
@@ -642,7 +642,7 @@ public:
}
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (instance->GetData(DATA_QUEST_JAIL_BREAK) == ENCOUNTER_STATE_NOT_STARTED) return;
if ((instance->GetData(DATA_QUEST_JAIL_BREAK) == ENCOUNTER_STATE_IN_PROGRESS || instance->GetData(DATA_QUEST_JAIL_BREAK) == ENCOUNTER_STATE_FAILED || instance->GetData(DATA_QUEST_JAIL_BREAK) == ENCOUNTER_STATE_ENDED)&& instance->GetData(DATA_DUGHAL) == ENCOUNTER_STATE_ENDED)
@@ -687,7 +687,7 @@ class npc_marshal_windsor : public CreatureScript
public:
npc_marshal_windsor() : CreatureScript("npc_marshal_windsor") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
npc_marshal_windsorAI* marshal_windsorAI = new npc_marshal_windsorAI(creature);
@@ -715,7 +715,7 @@ public:
return marshal_windsorAI;
}
bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) OVERRIDE
bool OnQuestAccept(Player* player, Creature* creature, Quest const* quest) override
{
if (quest->GetQuestId() == 4322)
{
@@ -737,7 +737,7 @@ public:
instance = creature->GetInstanceScript();
}
void WaypointReached(uint32 waypointId) OVERRIDE
void WaypointReached(uint32 waypointId) override
{
switch (waypointId)
{
@@ -782,7 +782,7 @@ public:
}
}
void EnterCombat(Unit* who) OVERRIDE
void EnterCombat(Unit* who) override
{
switch (urand(0, 2))
{
@@ -798,14 +798,14 @@ public:
}
}
void Reset() OVERRIDE { }
void Reset() override { }
void JustDied(Unit* slayer) OVERRIDE
void JustDied(Unit* slayer) override
{
instance->SetData(DATA_QUEST_JAIL_BREAK, ENCOUNTER_STATE_FAILED);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (instance->GetData(DATA_QUEST_JAIL_BREAK) == ENCOUNTER_STATE_NOT_STARTED)
return;
@@ -871,7 +871,7 @@ class npc_marshal_reginald_windsor : public CreatureScript
public:
npc_marshal_reginald_windsor() : CreatureScript("npc_marshal_reginald_windsor") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
npc_marshal_reginald_windsorAI* marshal_reginald_windsorAI = new npc_marshal_reginald_windsorAI(creature);
@@ -920,7 +920,7 @@ public:
{
}
void WaypointReached(uint32 waypointId) OVERRIDE
void WaypointReached(uint32 waypointId) override
{
wp = waypointId;
switch (waypointId)
@@ -978,7 +978,7 @@ public:
}
}
void MoveInLineOfSight(Unit* who) OVERRIDE
void MoveInLineOfSight(Unit* who) override
{
if (HasEscortState(STATE_ESCORT_ESCORTING))
@@ -998,7 +998,7 @@ public:
}
}
void EnterCombat(Unit* who) OVERRIDE
void EnterCombat(Unit* who) override
{
switch (urand(0, 2))
{
@@ -1013,14 +1013,14 @@ public:
break;
}
}
void Reset() OVERRIDE { }
void Reset() override { }
void JustDied(Unit* slayer) OVERRIDE
void JustDied(Unit* slayer) override
{
instance->SetData(DATA_QUEST_JAIL_BREAK, ENCOUNTER_STATE_FAILED);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (instance->GetData(DATA_QUEST_JAIL_BREAK) == ENCOUNTER_STATE_NOT_STARTED)
return;
@@ -1081,7 +1081,7 @@ class npc_tobias_seecher : public CreatureScript
public:
npc_tobias_seecher() : CreatureScript("npc_tobias_seecher") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
npc_tobias_seecherAI* tobias_seecherAI = new npc_tobias_seecherAI(creature);
@@ -1094,7 +1094,7 @@ public:
return tobias_seecherAI;
}
bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action) OVERRIDE
bool OnGossipSelect(Player* player, Creature* creature, uint32 sender, uint32 action) override
{
player->PlayerTalkClass->ClearMenus();
if (action == GOSSIP_ACTION_INFO_DEF + 1)
@@ -1107,7 +1107,7 @@ public:
return true;
}
bool OnGossipHello(Player* player, Creature* creature) OVERRIDE
bool OnGossipHello(Player* player, Creature* creature) override
{
if (player->GetQuestStatus(QUEST_JAIL_BREAK) == QUEST_STATUS_INCOMPLETE && instance->GetData(DATA_QUEST_JAIL_BREAK) == ENCOUNTER_STATE_IN_PROGRESS)
{
@@ -1121,10 +1121,10 @@ public:
{
npc_tobias_seecherAI(Creature* creature) : npc_escortAI(creature) { }
void EnterCombat(Unit* who) OVERRIDE { }
void Reset() OVERRIDE { }
void EnterCombat(Unit* who) override { }
void Reset() override { }
void JustDied(Unit* killer) OVERRIDE
void JustDied(Unit* killer) override
{
if (IsBeingEscorted && killer == me)
{
@@ -1135,7 +1135,7 @@ public:
}
}
void WaypointReached(uint32 waypointId) OVERRIDE
void WaypointReached(uint32 waypointId) override
{
switch (waypointId)
{
@@ -1154,7 +1154,7 @@ public:
}
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (instance->GetData(DATA_QUEST_JAIL_BREAK) == ENCOUNTER_STATE_NOT_STARTED)
return;
@@ -1199,7 +1199,7 @@ class npc_rocknot : public CreatureScript
public:
npc_rocknot() : CreatureScript("npc_rocknot") { }
bool OnQuestReward(Player* /*player*/, Creature* creature, Quest const* quest, uint32 /*item*/) OVERRIDE
bool OnQuestReward(Player* /*player*/, Creature* creature, Quest const* quest, uint32 /*item*/) override
{
InstanceScript* instance = creature->GetInstanceScript();
if (!instance)
@@ -1229,7 +1229,7 @@ public:
return true;
}
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<npc_rocknotAI>(creature);
}
@@ -1246,7 +1246,7 @@ public:
uint32 BreakKeg_Timer;
uint32 BreakDoor_Timer;
void Reset() OVERRIDE
void Reset() override
{
if (HasEscortState(STATE_ESCORT_ESCORTING))
return;
@@ -1261,7 +1261,7 @@ public:
go->SetGoState((GOState)state);
}
void WaypointReached(uint32 waypointId) OVERRIDE
void WaypointReached(uint32 waypointId) override
{
switch (waypointId)
{
@@ -1284,7 +1284,7 @@ public:
}
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (BreakKeg_Timer)
{
@@ -29,7 +29,7 @@ class boss_ambassador_flamelash : public CreatureScript
public:
boss_ambassador_flamelash() : CreatureScript("boss_ambassador_flamelash") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_ambassador_flamelashAI(creature);
}
@@ -41,13 +41,13 @@ public:
uint32 FireBlast_Timer;
uint32 Spirit_Timer;
void Reset() OVERRIDE
void Reset() override
{
FireBlast_Timer = 2000;
Spirit_Timer = 24000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void EnterCombat(Unit* /*who*/) override { }
void SummonSpirits(Unit* victim)
{
@@ -55,7 +55,7 @@ public:
Spirit->AI()->AttackStart(victim);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
//Return since we have no target
if (!UpdateVictim())
@@ -33,7 +33,7 @@ class boss_anubshiah : public CreatureScript
public:
boss_anubshiah() : CreatureScript("boss_anubshiah") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_anubshiahAI(creature);
}
@@ -48,7 +48,7 @@ public:
uint32 DemonArmor_Timer;
uint32 EnvelopingWeb_Timer;
void Reset() OVERRIDE
void Reset() override
{
ShadowBolt_Timer = 7000;
CurseOfTongues_Timer = 24000;
@@ -57,9 +57,9 @@ public:
EnvelopingWeb_Timer = 16000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void EnterCombat(Unit* /*who*/) override { }
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
//Return since we have no target
if (!UpdateVictim())
@@ -37,7 +37,7 @@ class boss_emperor_dagran_thaurissan : public CreatureScript
public:
boss_emperor_dagran_thaurissan() : CreatureScript("boss_emperor_dagran_thaurissan") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_draganthaurissanAI>(creature);
}
@@ -54,25 +54,25 @@ public:
uint32 AvatarOfFlame_Timer;
//uint32 Counter;
void Reset() OVERRIDE
void Reset() override
{
HandOfThaurissan_Timer = 4000;
AvatarOfFlame_Timer = 25000;
//Counter= 0;
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
Talk(SAY_AGGRO);
me->CallForHelp(VISIBLE_RANGE);
}
void KilledUnit(Unit* /*victim*/) OVERRIDE
void KilledUnit(Unit* /*victim*/) override
{
Talk(SAY_SLAY);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
if (Creature* Moira = ObjectAccessor::GetCreature(*me, instance->GetData64(DATA_MOIRA)))
{
@@ -81,7 +81,7 @@ public:
}
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
//Return since we have no target
if (!UpdateVictim())
@@ -31,7 +31,7 @@ class boss_general_angerforge : public CreatureScript
public:
boss_general_angerforge() : CreatureScript("boss_general_angerforge") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_general_angerforgeAI(creature);
}
@@ -46,7 +46,7 @@ public:
uint32 Adds_Timer;
bool Medics;
void Reset() OVERRIDE
void Reset() override
{
MightyBlow_Timer = 8000;
HamString_Timer = 12000;
@@ -55,7 +55,7 @@ public:
Medics = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void EnterCombat(Unit* /*who*/) override { }
void SummonAdds(Unit* victim)
{
@@ -69,7 +69,7 @@ public:
SummonedMedic->AI()->AttackStart(victim);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
//Return since we have no target
if (!UpdateVictim())
@@ -30,7 +30,7 @@ class boss_gorosh_the_dervish : public CreatureScript
public:
boss_gorosh_the_dervish() : CreatureScript("boss_gorosh_the_dervish") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_gorosh_the_dervishAI(creature);
}
@@ -42,17 +42,17 @@ public:
uint32 WhirlWind_Timer;
uint32 MortalStrike_Timer;
void Reset() OVERRIDE
void Reset() override
{
WhirlWind_Timer = 12000;
MortalStrike_Timer = 22000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
//Return since we have no target
if (!UpdateVictim())
@@ -31,7 +31,7 @@ class boss_grizzle : public CreatureScript
public:
boss_grizzle() : CreatureScript("boss_grizzle") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_grizzleAI(creature);
}
@@ -43,15 +43,15 @@ public:
uint32 GroundTremor_Timer;
uint32 Frenzy_Timer;
void Reset() OVERRIDE
void Reset() override
{
GroundTremor_Timer = 12000;
Frenzy_Timer =0;
}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void EnterCombat(Unit* /*who*/) override { }
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
//Return since we have no target
if (!UpdateVictim())
@@ -32,7 +32,7 @@ class boss_high_interrogator_gerstahn : public CreatureScript
public:
boss_high_interrogator_gerstahn() : CreatureScript("boss_high_interrogator_gerstahn") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_high_interrogator_gerstahnAI(creature);
}
@@ -46,7 +46,7 @@ public:
uint32 PsychicScream_Timer;
uint32 ShadowShield_Timer;
void Reset() OVERRIDE
void Reset() override
{
ShadowWordPain_Timer = 4000;
ManaBurn_Timer = 14000;
@@ -54,9 +54,9 @@ public:
ShadowShield_Timer = 8000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void EnterCombat(Unit* /*who*/) override { }
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
//Return since we have no target
if (!UpdateVictim())
@@ -35,7 +35,7 @@ class boss_magmus : public CreatureScript
public:
boss_magmus() : CreatureScript("boss_magmus") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_magmusAI(creature);
}
@@ -47,15 +47,15 @@ public:
uint32 FieryBurst_Timer;
uint32 WarStomp_Timer;
void Reset() OVERRIDE
void Reset() override
{
FieryBurst_Timer = 5000;
WarStomp_Timer =0;
}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void EnterCombat(Unit* /*who*/) override { }
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
//Return since we have no target
if (!UpdateVictim())
@@ -81,7 +81,7 @@ public:
DoMeleeAttackIfReady();
}
// When he die open door to last chamber
void JustDied(Unit* killer) OVERRIDE
void JustDied(Unit* killer) override
{
if (InstanceScript* instance = killer->GetInstanceScript())
instance->HandleGameObject(instance->GetData64(DATA_THRONE_DOOR), true);
@@ -34,7 +34,7 @@ class boss_moira_bronzebeard : public CreatureScript
public:
boss_moira_bronzebeard() : CreatureScript("boss_moira_bronzebeard") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_moira_bronzebeardAI(creature);
}
@@ -48,7 +48,7 @@ public:
uint32 ShadowWordPain_Timer;
uint32 Smite_Timer;
void Reset() OVERRIDE
void Reset() override
{
Heal_Timer = 12000; //These times are probably wrong
MindBlast_Timer = 16000;
@@ -56,9 +56,9 @@ public:
Smite_Timer = 8000;
}
void EnterCombat(Unit* /*who*/) OVERRIDE { }
void EnterCombat(Unit* /*who*/) override { }
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
//Return since we have no target
if (!UpdateVictim())
@@ -48,7 +48,7 @@ class boss_gloomrel : public CreatureScript
public:
boss_gloomrel() : CreatureScript("boss_gloomrel") { }
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) OVERRIDE
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override
{
player->PlayerTalkClass->ClearMenus();
switch (action)
@@ -77,7 +77,7 @@ public:
return true;
}
bool OnGossipHello(Player* player, Creature* creature) OVERRIDE
bool OnGossipHello(Player* player, Creature* creature) override
{
if (player->GetQuestRewardStatus(QUEST_SPECTRAL_CHALICE) == 1 && player->GetSkillValue(SKILL_MINING) >= DATA_SKILLPOINT_MIN && !player->HasSpell(SPELL_SMELT_DARK_IRON))
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_TEACH_1, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
@@ -107,7 +107,7 @@ class boss_doomrel : public CreatureScript
public:
boss_doomrel() : CreatureScript("boss_doomrel") { }
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) OVERRIDE
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override
{
player->PlayerTalkClass->ClearMenus();
switch (action)
@@ -130,7 +130,7 @@ public:
return true;
}
bool OnGossipHello(Player* player, Creature* creature) OVERRIDE
bool OnGossipHello(Player* player, Creature* creature) override
{
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_ITEM_CHALLENGE, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF + 1);
player->SEND_GOSSIP_MENU(2601, creature->GetGUID());
@@ -138,7 +138,7 @@ public:
return true;
}
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_doomrelAI>(creature);
}
@@ -157,7 +157,7 @@ public:
uint32 DemonArmor_Timer;
bool Voidwalkers;
void Reset() OVERRIDE
void Reset() override
{
ShadowVolley_Timer = 10000;
Immolate_Timer = 18000;
@@ -176,11 +176,11 @@ public:
me->SetUInt32Value(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_GOSSIP);
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
}
void EnterEvadeMode() OVERRIDE
void EnterEvadeMode() override
{
me->RemoveAllAuras();
me->DeleteThreatList();
@@ -192,12 +192,12 @@ public:
instance->SetData64(DATA_EVENSTARTER, 0);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
instance->SetData(DATA_GHOSTKILL, 1);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -69,7 +69,7 @@ class instance_blackrock_depths : public InstanceMapScript
public:
instance_blackrock_depths() : InstanceMapScript("instance_blackrock_depths", 230) { }
InstanceScript* GetInstanceScript(InstanceMap* map) const OVERRIDE
InstanceScript* GetInstanceScript(InstanceMap* map) const override
{
return new instance_blackrock_depths_InstanceMapScript(map);
}
@@ -115,7 +115,7 @@ public:
uint32 TombTimer;
uint32 TombEventCounter;
void Initialize() OVERRIDE
void Initialize() override
{
memset(&encounter, 0, sizeof(encounter));
@@ -156,7 +156,7 @@ public:
TombBossGUIDs[i] = 0;
}
void OnCreatureCreate(Creature* creature) OVERRIDE
void OnCreatureCreate(Creature* creature) override
{
switch (creature->GetEntry())
{
@@ -178,7 +178,7 @@ public:
}
}
void OnGameObjectCreate(GameObject* go) OVERRIDE
void OnGameObjectCreate(GameObject* go) override
{
switch (go->GetEntry())
{
@@ -212,7 +212,7 @@ public:
}
}
void SetData64(uint32 type, uint64 data) OVERRIDE
void SetData64(uint32 type, uint64 data) override
{
TC_LOG_DEBUG("scripts", "Instance Blackrock Depths: SetData64 update (Type: %u Data " UI64FMTD ")", type, data);
@@ -228,7 +228,7 @@ public:
}
}
void SetData(uint32 type, uint32 data) OVERRIDE
void SetData(uint32 type, uint32 data) override
{
TC_LOG_DEBUG("scripts", "Instance Blackrock Depths: SetData update (Type: %u Data %u)", type, data);
@@ -275,7 +275,7 @@ public:
}
}
uint32 GetData(uint32 type) const OVERRIDE
uint32 GetData(uint32 type) const override
{
switch (type)
{
@@ -300,7 +300,7 @@ public:
return 0;
}
uint64 GetData64(uint32 data) const OVERRIDE
uint64 GetData64(uint32 data) const override
{
switch (data)
{
@@ -342,12 +342,12 @@ public:
return 0;
}
std::string GetSaveData() OVERRIDE
std::string GetSaveData() override
{
return str_data;
}
void Load(const char* in) OVERRIDE
void Load(const char* in) override
{
if (!in)
{
@@ -429,7 +429,7 @@ public:
TombEventStarterGUID = 0;
SetData(TYPE_TOMB_OF_SEVEN, DONE);
}
void Update(uint32 diff) OVERRIDE
void Update(uint32 diff) override
{
if (TombEventStarterGUID && GhostKillCount < 7)
{
@@ -45,12 +45,12 @@ public:
{
boss_drakkisathAI(Creature* creature) : BossAI(creature, DATA_GENERAL_DRAKKISATH) { }
void Reset() OVERRIDE
void Reset() override
{
_Reset();
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
events.ScheduleEvent(EVENT_FIRE_NOVA, 6000);
@@ -59,12 +59,12 @@ public:
events.ScheduleEvent(EVENT_THUNDERCLAP, 17000);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
_JustDied();
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -100,7 +100,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_drakkisathAI(creature);
}
@@ -48,29 +48,29 @@ public:
{
boss_gizrul_the_slavenerAI(Creature* creature) : BossAI(creature, DATA_GIZRUL_THE_SLAVENER) { }
void Reset() OVERRIDE
void Reset() override
{
_Reset();
}
void IsSummonedBy(Unit* /*summoner*/) OVERRIDE
void IsSummonedBy(Unit* /*summoner*/) override
{
me->GetMotionMaster()->MovePath(GIZRUL_PATH, false);
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
events.ScheduleEvent(EVENT_FATAL_BITE, urand(17000,20000));
events.ScheduleEvent(EVENT_INFECTED_BITE, urand(10000,12000));
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
_JustDied();
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -100,7 +100,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_gizrul_the_slavenerAI(creature);
}
@@ -57,7 +57,7 @@ public:
bool SummonedRend;
void Reset() OVERRIDE
void Reset() override
{
SummonedRend = false;
if (instance->GetBossState(DATA_GYTH) == IN_PROGRESS)
@@ -67,7 +67,7 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
@@ -77,12 +77,12 @@ public:
events.ScheduleEvent(EVENT_KNOCK_AWAY, urand(12000, 18000));
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
instance->SetBossState(DATA_GYTH, DONE);
}
void SetData(uint32 /*type*/, uint32 data) OVERRIDE
void SetData(uint32 /*type*/, uint32 data) override
{
switch (data)
{
@@ -94,7 +94,7 @@ public:
}
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!SummonedRend && HealthBelowPct(5))
@@ -160,7 +160,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_gythAI>(creature);
}
@@ -47,20 +47,20 @@ public:
{
boss_halyconAI(Creature* creature) : BossAI(creature, DATA_HALYCON) { }
void Reset() OVERRIDE
void Reset() override
{
_Reset();
Summoned = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
events.ScheduleEvent(EVENT_REND, urand(17000,20000));
events.ScheduleEvent(EVENT_THRASH, urand(10000,12000));
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
me->SummonCreature(NPC_GIZRUL_THE_SLAVENER, SummonLocation, TEMPSUMMON_TIMED_DESPAWN, 300000);
Talk(EMOTE_DEATH);
@@ -68,7 +68,7 @@ public:
Summoned = true;
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -99,7 +99,7 @@ public:
bool Summoned;
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_halyconAI(creature);
}
@@ -37,7 +37,7 @@ class boss_highlord_omokk : public CreatureScript
public:
boss_highlord_omokk() : CreatureScript("boss_highlord_omokk") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_highlordomokkAI(creature);
}
@@ -46,24 +46,24 @@ public:
{
boss_highlordomokkAI(Creature* creature) : BossAI(creature, DATA_HIGHLORD_OMOKK) { }
void Reset() OVERRIDE
void Reset() override
{
_Reset();
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
events.ScheduleEvent(EVENT_FRENZY, 20000);
events.ScheduleEvent(EVENT_KNOCK_AWAY, 18000);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
_JustDied();
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -48,26 +48,26 @@ public:
{
boss_lord_valthalakAI(Creature* creature) : BossAI(creature, DATA_LORD_VALTHALAK) { }
void Reset() OVERRIDE
void Reset() override
{
_Reset();
frenzy40 = false;
frenzy15 = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
events.ScheduleEvent(EVENT_SUMMON_SPECTRAL_ASSASSIN, urand(6000,8000));
events.ScheduleEvent(EVENT_SHADOW_WRATH, urand(9000,18000));
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
instance->SetData(DATA_LORD_VALTHALAK, DONE);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -125,7 +125,7 @@ public:
bool frenzy15;
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_lord_valthalakAI>(creature);
}
@@ -38,7 +38,7 @@ class boss_mother_smolderweb : public CreatureScript
public:
boss_mother_smolderweb() : CreatureScript("boss_mother_smolderweb") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_mothersmolderwebAI(creature);
}
@@ -47,30 +47,30 @@ public:
{
boss_mothersmolderwebAI(Creature* creature) : BossAI(creature, DATA_MOTHER_SMOLDERWEB) { }
void Reset() OVERRIDE
void Reset() override
{
_Reset();
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
events.ScheduleEvent(EVENT_CRYSTALIZE, 20 * IN_MILLISECONDS);
events.ScheduleEvent(EVENT_MOTHERS_MILK, 10 * IN_MILLISECONDS);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
_JustDied();
}
void DamageTaken(Unit* /*done_by*/, uint32 &damage) OVERRIDE
void DamageTaken(Unit* /*done_by*/, uint32 &damage) override
{
if (me->GetHealth() <= damage)
DoCast(me, SPELL_SUMMON_SPIRE_SPIDERLING, true);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -50,7 +50,7 @@ class boss_overlord_wyrmthalak : public CreatureScript
public:
boss_overlord_wyrmthalak() : CreatureScript("boss_overlord_wyrmthalak") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_overlordwyrmthalakAI(creature);
}
@@ -61,13 +61,13 @@ public:
bool Summoned;
void Reset() OVERRIDE
void Reset() override
{
_Reset();
Summoned = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
events.ScheduleEvent(EVENT_BLAST_WAVE, 20 * IN_MILLISECONDS);
@@ -76,12 +76,12 @@ public:
events.ScheduleEvent(EVENT_KNOCK_AWAY, 12 * IN_MILLISECONDS);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
_JustDied();
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -77,7 +77,7 @@ public:
{
boss_pyroguard_emberseerAI(Creature* creature) : BossAI(creature, DATA_PYROGAURD_EMBERSEER) { }
void Reset() OVERRIDE
void Reset() override
{
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC | UNIT_FLAG_NOT_SELECTABLE);
events.Reset();
@@ -95,7 +95,7 @@ public:
OpenDoors(false); // Opens 2 entrance doors
}
void SetData(uint32 /*type*/, uint32 data) OVERRIDE
void SetData(uint32 /*type*/, uint32 data) override
{
switch (data)
{
@@ -119,7 +119,7 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
// ### TODO Check combat timing ###
events.ScheduleEvent(EVENT_FIRENOVA, 6000);
@@ -127,7 +127,7 @@ public:
events.ScheduleEvent(EVENT_PYROBLAST, 14000);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
// Activate all the runes
UpdateRunes(GO_STATE_READY);
@@ -137,7 +137,7 @@ public:
instance->SetBossState(DATA_PYROGAURD_EMBERSEER, DONE);
}
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) OVERRIDE
void SpellHit(Unit* /*caster*/, SpellInfo const* spell) override
{
if (spell->Id == SPELL_ENCAGE_EMBERSEER)
{
@@ -196,7 +196,7 @@ public:
rune7->SetGoState(state);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
{
@@ -305,7 +305,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_pyroguard_emberseerAI>(creature);
}
@@ -333,19 +333,19 @@ public:
{
npc_blackhand_incarceratorAI(Creature* creature) : ScriptedAI(creature) { }
void Reset() OVERRIDE
void Reset() override
{
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_IMMUNE_TO_PC|UNIT_FLAG_IMMUNE_TO_NPC);
if (Creature* Emberseer = me->FindNearestCreature(NPC_PYROGAURD_EMBERSEER, 30.0f, true))
Emberseer->AI()->SetData(1, 3);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
me->DespawnOrUnsummon(10000);
}
void SetData(uint32 data, uint32 value) OVERRIDE
void SetData(uint32 data, uint32 value) override
{
if (data == 1 && value == 1)
{
@@ -360,7 +360,7 @@ public:
}
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
// Used to close doors
if (Creature* Emberseer = me->FindNearestCreature(NPC_PYROGAURD_EMBERSEER, 30.0f, true))
@@ -379,7 +379,7 @@ public:
_events.ScheduleEvent(EVENT_ENCAGE, urand(10000, 20000));
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
@@ -431,7 +431,7 @@ public:
EventMap _events;
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new npc_blackhand_incarceratorAI(creature);
}
@@ -42,24 +42,24 @@ public:
{
boss_quatermasterzigrisAI(Creature* creature) : BossAI(creature, DATA_QUARTERMASTER_ZIGRIS) { }
void Reset() OVERRIDE
void Reset() override
{
_Reset();
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
events.ScheduleEvent(EVENT_SHOOT, 1000);
events.ScheduleEvent(EVENT_STUN_BOMB, 16000);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
_JustDied();
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -87,7 +87,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_quatermasterzigrisAI(creature);
}
@@ -171,7 +171,7 @@ public:
portcullisGUID = 0;
}
void Reset() OVERRIDE
void Reset() override
{
_Reset();
gythEvent = false;
@@ -179,7 +179,7 @@ public:
portcullisGUID = 0;
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
events.ScheduleEvent(EVENT_WHIRLWIND, urand(13000, 15000));
@@ -187,14 +187,14 @@ public:
events.ScheduleEvent(EVENT_MORTAL_STRIKE, urand(17000, 19000));
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
_JustDied();
if (Creature* victor = me->FindNearestCreature(NPC_LORD_VICTOR_NEFARIUS, 75.0f, true))
victor->AI()->SetData(1, 2);
}
void SetData(uint32 type, uint32 data) OVERRIDE
void SetData(uint32 type, uint32 data) override
{
if (type == AREATRIGGER && data == AREATRIGGER_BLACKROCK_STADIUM)
{
@@ -214,7 +214,7 @@ public:
}
}
void MovementInform(uint32 type, uint32 id) OVERRIDE
void MovementInform(uint32 type, uint32 id) override
{
if (type == WAYPOINT_MOTION_TYPE)
{
@@ -232,7 +232,7 @@ public:
}
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (gythEvent)
{
@@ -441,7 +441,7 @@ public:
uint64 portcullisGUID;
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_rend_blackhandAI>(creature);
}
@@ -39,7 +39,7 @@ class boss_shadow_hunter_voshgajin : public CreatureScript
public:
boss_shadow_hunter_voshgajin() : CreatureScript("boss_shadow_hunter_voshgajin") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_shadowvoshAI(creature);
}
@@ -48,13 +48,13 @@ public:
{
boss_shadowvoshAI(Creature* creature) : BossAI(creature, DATA_SHADOW_HUNTER_VOSHGAJIN) { }
void Reset() OVERRIDE
void Reset() override
{
_Reset();
//DoCast(me, SPELL_ICEARMOR, true);
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
events.ScheduleEvent(EVENT_CURSE_OF_BLOOD, 2 * IN_MILLISECONDS);
@@ -62,12 +62,12 @@ public:
events.ScheduleEvent(EVENT_CLEAVE, 14 * IN_MILLISECONDS);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
_JustDied();
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -39,7 +39,7 @@ class boss_the_beast : public CreatureScript
public:
boss_the_beast() : CreatureScript("boss_the_beast") { }
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_thebeastAI(creature);
}
@@ -48,12 +48,12 @@ public:
{
boss_thebeastAI(Creature* creature) : BossAI(creature, DATA_THE_BEAST) { }
void Reset() OVERRIDE
void Reset() override
{
_Reset();
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
events.ScheduleEvent(EVENT_FLAME_BREAK, 12 * IN_MILLISECONDS);
@@ -61,12 +61,12 @@ public:
events.ScheduleEvent(EVENT_TERRIFYING_ROAR, 23 * IN_MILLISECONDS);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
_JustDied();
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -48,12 +48,12 @@ public:
{
boss_urok_doomhowlAI(Creature* creature) : BossAI(creature, DATA_UROK_DOOMHOWL) { }
void Reset() OVERRIDE
void Reset() override
{
_Reset();
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
events.ScheduleEvent(SPELL_REND, urand(17000,20000));
@@ -61,12 +61,12 @@ public:
Talk(SAY_AGGRO);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
_JustDied();
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -96,7 +96,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_urok_doomhowlAI(creature);
}
@@ -49,12 +49,12 @@ public:
{
boss_warmastervooneAI(Creature* creature) : BossAI(creature, DATA_WARMASTER_VOONE) { }
void Reset() OVERRIDE
void Reset() override
{
_Reset();
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
events.ScheduleEvent(EVENT_SNAP_KICK, 8 * IN_MILLISECONDS);
@@ -65,12 +65,12 @@ public:
events.ScheduleEvent(EVENT_THROW_AXE, 1 * IN_MILLISECONDS);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
_JustDied();
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -114,7 +114,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_warmastervooneAI(creature);
}
@@ -77,7 +77,7 @@ public:
memset(go_emberseerrunes, 0, sizeof(go_emberseerrunes));
}
void OnCreatureCreate(Creature* creature) OVERRIDE
void OnCreatureCreate(Creature* creature) override
{
switch (creature->GetEntry())
{
@@ -135,7 +135,7 @@ public:
}
}
void OnGameObjectCreate(GameObject* go) OVERRIDE
void OnGameObjectCreate(GameObject* go) override
{
switch (go->GetEntry())
{
@@ -242,7 +242,7 @@ public:
}
}
bool SetBossState(uint32 type, EncounterState state) OVERRIDE
bool SetBossState(uint32 type, EncounterState state) override
{
if (!InstanceScript::SetBossState(type, state))
return false;
@@ -272,7 +272,7 @@ public:
return true;
}
void ProcessEvent(WorldObject* /*obj*/, uint32 eventId) OVERRIDE
void ProcessEvent(WorldObject* /*obj*/, uint32 eventId) override
{
switch (eventId)
{
@@ -294,7 +294,7 @@ public:
}
}
void SetData(uint32 type, uint32 data) OVERRIDE
void SetData(uint32 type, uint32 data) override
{
switch (type)
{
@@ -309,7 +309,7 @@ public:
}
}
uint64 GetData64(uint32 type) const OVERRIDE
uint64 GetData64(uint32 type) const override
{
switch (type)
{
@@ -385,7 +385,7 @@ public:
return 0;
}
void Update(uint32 diff) OVERRIDE
void Update(uint32 diff) override
{
Events.Update(diff);
@@ -502,7 +502,7 @@ public:
}
}
std::string GetSaveData() OVERRIDE
std::string GetSaveData() override
{
OUT_SAVE_INST_DATA;
@@ -513,7 +513,7 @@ public:
return saveStream.str();
}
void Load(const char* strIn) OVERRIDE
void Load(const char* strIn) override
{
if (!strIn)
{
@@ -574,7 +574,7 @@ public:
uint64 go_portcullis_tobossrooms;
};
InstanceScript* GetInstanceScript(InstanceMap* map) const OVERRIDE
InstanceScript* GetInstanceScript(InstanceMap* map) const override
{
return new instance_blackrock_spireMapScript(map);
}
@@ -589,7 +589,7 @@ class at_dragonspire_hall : public AreaTriggerScript
public:
at_dragonspire_hall() : AreaTriggerScript("at_dragonspire_hall") { }
bool OnTrigger(Player* player, const AreaTriggerEntry* /*at*/) OVERRIDE
bool OnTrigger(Player* player, const AreaTriggerEntry* /*at*/) override
{
if (player && player->IsAlive())
{
@@ -613,7 +613,7 @@ class at_blackrock_stadium : public AreaTriggerScript
public:
at_blackrock_stadium() : AreaTriggerScript("at_blackrock_stadium") { }
bool OnTrigger(Player* player, const AreaTriggerEntry* /*at*/) OVERRIDE
bool OnTrigger(Player* player, const AreaTriggerEntry* /*at*/) override
{
if (player && player->IsAlive())
{
@@ -52,7 +52,7 @@ public:
{
boss_broodlordAI(Creature* creature) : BossAI(creature, BOSS_BROODLORD) { }
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
if (instance->GetBossState(BOSS_VAELASTRAZ) != DONE)
{
@@ -70,7 +70,7 @@ public:
events.ScheduleEvent(EVENT_CHECK, 1000);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -114,7 +114,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_broodlordAI>(creature);
}
@@ -173,7 +173,7 @@ public:
EnterEvadeMode();
}
void Reset() OVERRIDE
void Reset() override
{
_Reset();
@@ -181,7 +181,7 @@ public:
Enraged = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
if (instance->GetBossState(BOSS_FLAMEGOR) != DONE)
{
@@ -197,7 +197,7 @@ public:
events.ScheduleEvent(EVENT_FRENZY, 15000);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -280,7 +280,7 @@ public:
bool Enraged;
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_chromaggusAI>(creature);
}
@@ -43,7 +43,7 @@ public:
{
boss_ebonrocAI(Creature* creature) : BossAI(creature, BOSS_EBONROC) { }
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
if (instance->GetBossState(BOSS_BROODLORD) != DONE)
{
@@ -57,7 +57,7 @@ public:
events.ScheduleEvent(EVENT_SHADOWOFEBONROC, urand(8000, 10000));
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -90,7 +90,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_ebonrocAI>(creature);
}
@@ -43,7 +43,7 @@ public:
{
boss_firemawAI(Creature* creature) : BossAI(creature, BOSS_FIREMAW) { }
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
if (instance->GetBossState(BOSS_BROODLORD) != DONE)
{
@@ -57,7 +57,7 @@ public:
events.ScheduleEvent(EVENT_FLAMEBUFFET, 5000);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -92,7 +92,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_firemawAI>(creature);
}
@@ -48,7 +48,7 @@ public:
{
boss_flamegorAI(Creature* creature) : BossAI(creature, BOSS_FLAMEGOR) { }
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
if (instance->GetBossState(BOSS_BROODLORD) != DONE)
{
@@ -62,7 +62,7 @@ public:
events.ScheduleEvent(EVENT_FRENZY, 10000);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -98,7 +98,7 @@ public:
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_flamegorAI>(creature);
}
@@ -168,7 +168,7 @@ public:
{
boss_victor_nefariusAI(Creature* creature) : BossAI(creature, BOSS_NEFARIAN) { }
void Reset() OVERRIDE
void Reset() override
{
SpawnedAdds = 0;
@@ -186,7 +186,7 @@ public:
}
}
void JustReachedHome() OVERRIDE
void JustReachedHome() override
{
Reset();
}
@@ -208,7 +208,7 @@ public:
events.ScheduleEvent(EVENT_SPAWN_ADD, 10000);
}
void SummonedCreatureDies(Creature* summon, Unit* /*killer*/) OVERRIDE
void SummonedCreatureDies(Creature* summon, Unit* /*killer*/) override
{
if (summon->GetEntry() != NPC_NEFARIAN)
{
@@ -219,9 +219,9 @@ public:
}
}
void JustSummoned(Creature* /*summon*/) OVERRIDE { }
void JustSummoned(Creature* /*summon*/) override { }
void SetData(uint32 type, uint32 data) OVERRIDE
void SetData(uint32 type, uint32 data) override
{
if ( type == 1 && data == 1)
{
@@ -233,7 +233,7 @@ public:
events.ScheduleEvent(EVENT_SUCCESS_1, 5000);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
{
@@ -359,7 +359,7 @@ public:
}
}
void sGossipSelect(Player* player, uint32 sender, uint32 action) OVERRIDE
void sGossipSelect(Player* player, uint32 sender, uint32 action) override
{
if (sender == GOSSIP_ID && action == GOSSIP_OPTION_ID)
{
@@ -373,7 +373,7 @@ public:
uint32 SpawnedAdds;
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_victor_nefariusAI>(creature);
}
@@ -388,19 +388,19 @@ public:
{
boss_nefarianAI(Creature* creature) : BossAI(creature, BOSS_NEFARIAN) { }
void Reset() OVERRIDE
void Reset() override
{
Phase3 = false;
canDespawn = false;
DespawnTimer = 30000;
}
void JustReachedHome() OVERRIDE
void JustReachedHome() override
{
canDespawn = true;
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
events.ScheduleEvent(EVENT_SHADOWFLAME, 12000);
events.ScheduleEvent(EVENT_FEAR, urand(25000, 35000));
@@ -411,13 +411,13 @@ public:
Talk(SAY_RANDOM);
}
void JustDied(Unit* /*Killer*/) OVERRIDE
void JustDied(Unit* /*Killer*/) override
{
_JustDied();
Talk(SAY_DEATH);
}
void KilledUnit(Unit* victim) OVERRIDE
void KilledUnit(Unit* victim) override
{
if (rand()%5)
return;
@@ -425,7 +425,7 @@ public:
Talk(SAY_SLAY, victim);
}
void MovementInform(uint32 type, uint32 id) OVERRIDE
void MovementInform(uint32 type, uint32 id) override
{
if (type != POINT_MOTION_TYPE)
return;
@@ -438,7 +438,7 @@ public:
}
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (canDespawn && DespawnTimer <= diff)
{
@@ -568,7 +568,7 @@ public:
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_nefarianAI>(creature);
}
@@ -70,7 +70,7 @@ public:
{
boss_razorgoreAI(Creature* creature) : BossAI(creature, BOSS_RAZORGORE) { }
void Reset() OVERRIDE
void Reset() override
{
_Reset();
@@ -78,7 +78,7 @@ public:
instance->SetData(DATA_EGG_EVENT, NOT_STARTED);
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
_JustDied();
Talk(SAY_DEATH);
@@ -98,19 +98,19 @@ public:
me->SetHealth(me->GetMaxHealth());
}
void DoAction(int32 action) OVERRIDE
void DoAction(int32 action) override
{
if (action == ACTION_PHASE_TWO)
DoChangePhase();
}
void DamageTaken(Unit* /*who*/, uint32& damage) OVERRIDE
void DamageTaken(Unit* /*who*/, uint32& damage) override
{
if (!secondPhase)
damage = 0;
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -152,7 +152,7 @@ public:
bool secondPhase;
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_razorgoreAI>(creature);
}
@@ -163,7 +163,7 @@ class go_orb_of_domination : public GameObjectScript
public:
go_orb_of_domination() : GameObjectScript("go_orb_of_domination") { }
bool OnGossipHello(Player* player, GameObject* go) OVERRIDE
bool OnGossipHello(Player* player, GameObject* go) override
{
if (InstanceScript* instance = go->GetInstanceScript())
if (instance->GetData(DATA_EGG_EVENT) != DONE)
@@ -191,13 +191,13 @@ class spell_egg_event : public SpellScriptLoader
instance->SetData(DATA_EGG_EVENT, SPECIAL);
}
void Register() OVERRIDE
void Register() override
{
OnHit += SpellHitFn(spell_egg_eventSpellScript::HandleOnHit);
}
};
SpellScript* GetSpellScript() const OVERRIDE
SpellScript* GetSpellScript() const override
{
return new spell_egg_eventSpellScript();
}
@@ -75,7 +75,7 @@ public:
creature->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NOT_SELECTABLE);
}
void Reset() OVERRIDE
void Reset() override
{
_Reset();
@@ -85,7 +85,7 @@ public:
HasYelled = false;
}
void EnterCombat(Unit* /*who*/) OVERRIDE
void EnterCombat(Unit* /*who*/) override
{
_EnterCombat();
@@ -109,7 +109,7 @@ public:
events.ScheduleEvent(EVENT_SPEECH_1, 1000);
}
void KilledUnit(Unit* victim) OVERRIDE
void KilledUnit(Unit* victim) override
{
if (rand()%5)
return;
@@ -117,7 +117,7 @@ public:
Talk(SAY_KILLTARGET, victim);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
events.Update(diff);
@@ -216,7 +216,7 @@ public:
DoMeleeAttackIfReady();
}
void sGossipSelect(Player* player, uint32 sender, uint32 action) OVERRIDE
void sGossipSelect(Player* player, uint32 sender, uint32 action) override
{
if (sender == GOSSIP_ID && action == 0)
{
@@ -230,7 +230,7 @@ public:
bool HasYelled;
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_vaelAI(creature);
}
@@ -81,7 +81,7 @@ public:
SetBossNumber(EncounterCount);
}
void Initialize() OVERRIDE
void Initialize() override
{
// Razorgore
EggCount = 0;
@@ -108,7 +108,7 @@ public:
NefarianGUID = 0;
}
void OnCreatureCreate(Creature* creature) OVERRIDE
void OnCreatureCreate(Creature* creature) override
{
switch (creature->GetEntry())
{
@@ -149,7 +149,7 @@ public:
}
}
void OnGameObjectCreate(GameObject* go) OVERRIDE
void OnGameObjectCreate(GameObject* go) override
{
switch (go->GetEntry())
{
@@ -182,13 +182,13 @@ public:
}
}
void OnGameObjectRemove(GameObject* go) OVERRIDE
void OnGameObjectRemove(GameObject* go) override
{
if (go->GetEntry() == 177807) // Egg
EggList.remove(go->GetGUID());
}
bool SetBossState(uint32 type, EncounterState state) OVERRIDE
bool SetBossState(uint32 type, EncounterState state) override
{
if (!InstanceScript::SetBossState(type, state))
return false;
@@ -238,7 +238,7 @@ public:
return true;
}
uint64 GetData64(uint32 id) const OVERRIDE
uint64 GetData64(uint32 id) const override
{
switch (id)
{
@@ -256,7 +256,7 @@ public:
return 0;
}
void SetData(uint32 type, uint32 data) OVERRIDE
void SetData(uint32 type, uint32 data) override
{
if (type == DATA_EGG_EVENT)
{
@@ -291,14 +291,14 @@ public:
}
}
void OnUnitDeath(Unit* unit) OVERRIDE
void OnUnitDeath(Unit* unit) override
{
//! HACK, needed because of buggy CreatureAI after charm
if (unit->GetEntry() == NPC_RAZORGORE && GetBossState(BOSS_RAZORGORE) != DONE)
SetBossState(BOSS_RAZORGORE, DONE);
}
void Update(uint32 diff) OVERRIDE
void Update(uint32 diff) override
{
if (_events.Empty())
return;
@@ -366,7 +366,7 @@ public:
uint64 NefarianGUID;
};
InstanceScript* GetInstanceScript(InstanceMap* map) const OVERRIDE
InstanceScript* GetInstanceScript(InstanceMap* map) const override
{
return new instance_blackwing_lair_InstanceMapScript(map);
}
@@ -59,7 +59,7 @@ class boss_baron_geddon : public CreatureScript
{
}
void EnterCombat(Unit* victim) OVERRIDE
void EnterCombat(Unit* victim) override
{
BossAI::EnterCombat(victim);
events.ScheduleEvent(EVENT_INFERNO, 45000);
@@ -67,7 +67,7 @@ class boss_baron_geddon : public CreatureScript
events.ScheduleEvent(EVENT_LIVING_BOMB, 35000);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -113,7 +113,7 @@ class boss_baron_geddon : public CreatureScript
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_baron_geddonAI(creature);
}
@@ -57,14 +57,14 @@ class boss_garr : public CreatureScript
{
}
void EnterCombat(Unit* victim) OVERRIDE
void EnterCombat(Unit* victim) override
{
BossAI::EnterCombat(victim);
events.ScheduleEvent(EVENT_ANTIMAGIC_PULSE, 25000);
events.ScheduleEvent(EVENT_MAGMA_SHACKLES, 15000);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -95,7 +95,7 @@ class boss_garr : public CreatureScript
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_garrAI(creature);
}
@@ -112,12 +112,12 @@ class npc_firesworn : public CreatureScript
uint32 immolateTimer;
void Reset() OVERRIDE
void Reset() override
{
immolateTimer = 4000; //These times are probably wrong
}
void DamageTaken(Unit* /*attacker*/, uint32& damage) OVERRIDE
void DamageTaken(Unit* /*attacker*/, uint32& damage) override
{
uint32 const health10pct = me->CountPctFromMaxHealth(10);
uint32 health = me->GetHealth();
@@ -129,7 +129,7 @@ class npc_firesworn : public CreatureScript
}
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -147,7 +147,7 @@ class npc_firesworn : public CreatureScript
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new npc_fireswornAI(creature);
}
@@ -53,7 +53,7 @@ class boss_gehennas : public CreatureScript
{
}
void EnterCombat(Unit* victim) OVERRIDE
void EnterCombat(Unit* victim) override
{
BossAI::EnterCombat(victim);
events.ScheduleEvent(EVENT_GEHENNAS_CURSE, 12000);
@@ -61,7 +61,7 @@ class boss_gehennas : public CreatureScript
events.ScheduleEvent(EVENT_SHADOW_BOLT, 6000);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -98,7 +98,7 @@ class boss_gehennas : public CreatureScript
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_gehennasAI(creature);
}
@@ -63,19 +63,19 @@ class boss_golemagg : public CreatureScript
{
}
void Reset() OVERRIDE
void Reset() override
{
BossAI::Reset();
DoCast(me, SPELL_MAGMASPLASH, true);
}
void EnterCombat(Unit* victim) OVERRIDE
void EnterCombat(Unit* victim) override
{
BossAI::EnterCombat(victim);
events.ScheduleEvent(EVENT_PYROBLAST, 7000);
}
void DamageTaken(Unit* /*attacker*/, uint32& /*damage*/) OVERRIDE
void DamageTaken(Unit* /*attacker*/, uint32& /*damage*/) override
{
if (!HealthBelowPct(10) || me->HasAura(SPELL_ENRAGE))
return;
@@ -84,7 +84,7 @@ class boss_golemagg : public CreatureScript
events.ScheduleEvent(EVENT_EARTHQUAKE, 3000);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -116,7 +116,7 @@ class boss_golemagg : public CreatureScript
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_golemaggAI(creature);
}
@@ -134,12 +134,12 @@ class npc_core_rager : public CreatureScript
instance = creature->GetInstanceScript();
}
void Reset() OVERRIDE
void Reset() override
{
mangleTimer = 7*IN_MILLISECONDS; // These times are probably wrong
}
void DamageTaken(Unit* /*attacker*/, uint32& /*damage*/) OVERRIDE
void DamageTaken(Unit* /*attacker*/, uint32& /*damage*/) override
{
if (HealthAbovePct(50) || !instance)
return;
@@ -155,7 +155,7 @@ class npc_core_rager : public CreatureScript
}
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -177,7 +177,7 @@ class npc_core_rager : public CreatureScript
uint32 mangleTimer;
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<npc_core_ragerAI>(creature);
}
@@ -53,7 +53,7 @@ class boss_lucifron : public CreatureScript
{
}
void EnterCombat(Unit* victim) OVERRIDE
void EnterCombat(Unit* victim) override
{
BossAI::EnterCombat(victim);
events.ScheduleEvent(EVENT_IMPENDING_DOOM, 10000);
@@ -61,7 +61,7 @@ class boss_lucifron : public CreatureScript
events.ScheduleEvent(EVENT_SHADOW_SHOCK, 6000);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -96,7 +96,7 @@ class boss_lucifron : public CreatureScript
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_lucifronAI(creature);
}
@@ -59,13 +59,13 @@ class boss_magmadar : public CreatureScript
{
}
void Reset() OVERRIDE
void Reset() override
{
BossAI::Reset();
DoCast(me, SPELL_MAGMA_SPIT, true);
}
void EnterCombat(Unit* victim) OVERRIDE
void EnterCombat(Unit* victim) override
{
BossAI::EnterCombat(victim);
events.ScheduleEvent(EVENT_FRENZY, 30000);
@@ -73,7 +73,7 @@ class boss_magmadar : public CreatureScript
events.ScheduleEvent(EVENT_LAVA_BOMB, 12000);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -110,7 +110,7 @@ class boss_magmadar : public CreatureScript
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_magmadarAI(creature);
}
@@ -78,13 +78,13 @@ class boss_majordomo : public CreatureScript
{
}
void KilledUnit(Unit* /*victim*/) OVERRIDE
void KilledUnit(Unit* /*victim*/) override
{
if (urand(0, 99) < 25)
Talk(SAY_SLAY);
}
void EnterCombat(Unit* who) OVERRIDE
void EnterCombat(Unit* who) override
{
BossAI::EnterCombat(who);
Talk(SAY_AGGRO);
@@ -94,7 +94,7 @@ class boss_majordomo : public CreatureScript
events.ScheduleEvent(EVENT_TELEPORT, 20000);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (instance->GetBossState(BOSS_MAJORDOMO_EXECUTUS) != DONE)
{
@@ -173,7 +173,7 @@ class boss_majordomo : public CreatureScript
}
}
void DoAction(int32 action) OVERRIDE
void DoAction(int32 action) override
{
if (action == ACTION_START_RAGNAROS)
{
@@ -190,21 +190,21 @@ class boss_majordomo : public CreatureScript
}
};
bool OnGossipHello(Player* player, Creature* creature) OVERRIDE
bool OnGossipHello(Player* player, Creature* creature) override
{
player->ADD_GOSSIP_ITEM(GOSSIP_ICON_CHAT, GOSSIP_SELECT, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INFO_DEF+1);
player->SEND_GOSSIP_MENU(GOSSIP_HELLO, creature->GetGUID());
return true;
}
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/) OVERRIDE
bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 /*action*/) override
{
player->CLOSE_GOSSIP_MENU();
creature->AI()->DoAction(ACTION_START_RAGNAROS);
return true;
}
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_majordomoAI>(creature);
}
@@ -87,7 +87,7 @@ class boss_ragnaros : public CreatureScript
me->SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE);
}
void Reset() OVERRIDE
void Reset() override
{
BossAI::Reset();
_emergeTimer = 90000;
@@ -97,7 +97,7 @@ class boss_ragnaros : public CreatureScript
me->SetUInt32Value(UNIT_NPC_EMOTESTATE, 0);
}
void EnterCombat(Unit* victim) OVERRIDE
void EnterCombat(Unit* victim) override
{
BossAI::EnterCombat(victim);
events.ScheduleEvent(EVENT_ERUPTION, 15000);
@@ -109,13 +109,13 @@ class boss_ragnaros : public CreatureScript
events.ScheduleEvent(EVENT_SUBMERGE, 180000);
}
void KilledUnit(Unit* /*victim*/) OVERRIDE
void KilledUnit(Unit* /*victim*/) override
{
if (urand(0, 99) < 25)
Talk(SAY_KILL);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (_introState != 2)
{
@@ -300,7 +300,7 @@ class boss_ragnaros : public CreatureScript
bool _isBanished;
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<boss_ragnarosAI>(creature);
}
@@ -318,12 +318,12 @@ class npc_son_of_flame : public CreatureScript
instance = me->GetInstanceScript();
}
void JustDied(Unit* /*killer*/) OVERRIDE
void JustDied(Unit* /*killer*/) override
{
instance->SetData(DATA_RAGNAROS_ADDS, 1);
}
void UpdateAI(uint32 /*diff*/) OVERRIDE
void UpdateAI(uint32 /*diff*/) override
{
if (!UpdateVictim())
return;
@@ -335,7 +335,7 @@ class npc_son_of_flame : public CreatureScript
InstanceScript* instance;
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return GetInstanceAI<npc_son_of_flameAI>(creature);
}
@@ -56,7 +56,7 @@ class boss_shazzrah : public CreatureScript
{
}
void EnterCombat(Unit* target) OVERRIDE
void EnterCombat(Unit* target) override
{
BossAI::EnterCombat(target);
events.ScheduleEvent(EVENT_ARCANE_EXPLOSION, 6000);
@@ -66,7 +66,7 @@ class boss_shazzrah : public CreatureScript
events.ScheduleEvent(EVENT_BLINK, 30000);
}
void UpdateAI(uint32 diff) OVERRIDE
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
@@ -117,7 +117,7 @@ class boss_shazzrah : public CreatureScript
}
};
CreatureAI* GetAI(Creature* creature) const OVERRIDE
CreatureAI* GetAI(Creature* creature) const override
{
return new boss_shazzrahAI(creature);
}

Some files were not shown because too many files have changed in this diff Show More