mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-13 23:43:44 +00:00
refactor(Core): apply clang-tidy modernize-use-override (#3817)
This commit is contained in:
@@ -40,7 +40,7 @@ class npc_tapoke_slim_jahn : public CreatureScript
|
||||
public:
|
||||
npc_tapoke_slim_jahn() : CreatureScript("npc_tapoke_slim_jahn") { }
|
||||
|
||||
CreatureAI* GetAI(Creature* creature) const
|
||||
CreatureAI* GetAI(Creature* creature) const override
|
||||
{
|
||||
return new npc_tapoke_slim_jahnAI(creature);
|
||||
}
|
||||
@@ -51,13 +51,13 @@ public:
|
||||
|
||||
bool IsFriendSummoned;
|
||||
|
||||
void Reset()
|
||||
void Reset() override
|
||||
{
|
||||
if (!HasEscortState(STATE_ESCORT_ESCORTING))
|
||||
IsFriendSummoned = false;
|
||||
}
|
||||
|
||||
void WaypointReached(uint32 waypointId)
|
||||
void WaypointReached(uint32 waypointId) override
|
||||
{
|
||||
switch (waypointId)
|
||||
{
|
||||
@@ -70,7 +70,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void EnterCombat(Unit* /*who*/)
|
||||
void EnterCombat(Unit* /*who*/) override
|
||||
{
|
||||
if (HasEscortState(STATE_ESCORT_ESCORTING) && !IsFriendSummoned && GetPlayerForEscort())
|
||||
{
|
||||
@@ -79,13 +79,13 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
void JustSummoned(Creature* summoned)
|
||||
void JustSummoned(Creature* summoned) override
|
||||
{
|
||||
if (Player* player = GetPlayerForEscort())
|
||||
summoned->AI()->AttackStart(player);
|
||||
}
|
||||
|
||||
void AttackedBy(Unit* pAttacker)
|
||||
void AttackedBy(Unit* pAttacker) override
|
||||
{
|
||||
if (me->GetVictim())
|
||||
return;
|
||||
@@ -96,7 +96,7 @@ public:
|
||||
AttackStart(pAttacker);
|
||||
}
|
||||
|
||||
void DamageTaken(Unit*, uint32& uiDamage, DamageEffectType, SpellSchoolMask)
|
||||
void DamageTaken(Unit*, uint32& uiDamage, DamageEffectType, SpellSchoolMask) override
|
||||
{
|
||||
if (HealthBelowPct(20))
|
||||
{
|
||||
@@ -127,7 +127,7 @@ class npc_mikhail : public CreatureScript
|
||||
public:
|
||||
npc_mikhail() : CreatureScript("npc_mikhail") { }
|
||||
|
||||
bool OnQuestAccept(Player* player, Creature* creature, const Quest* quest)
|
||||
bool OnQuestAccept(Player* player, Creature* creature, const Quest* quest) override
|
||||
{
|
||||
if (quest->GetQuestId() == QUEST_MISSING_DIPLO_PT11)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user