mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 19:06:49 +01:00
Core/Misc: fix warning and misc codestyle fixes
(cherry picked from commit 3b90b0368a)
This commit is contained in:
@@ -155,7 +155,7 @@ public:
|
||||
|
||||
void KilledUnit(Unit* victim) override
|
||||
{
|
||||
if(victim->GetTypeId() == TYPEID_PLAYER)
|
||||
if (victim->GetTypeId() == TYPEID_PLAYER)
|
||||
Talk(SAY_SLAY);
|
||||
}
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ public:
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
if(events.IsInPhase(PHASE_TRANSITION) || (events.IsInPhase(PHASE_THADDIUS) && me->IsAlive()))
|
||||
if (events.IsInPhase(PHASE_TRANSITION) || (events.IsInPhase(PHASE_THADDIUS) && me->IsAlive()))
|
||||
BeginResetEncounter();
|
||||
}
|
||||
|
||||
@@ -640,7 +640,7 @@ public:
|
||||
|
||||
void UpdateAI(uint32 uiDiff) override
|
||||
{
|
||||
if(!isFeignDeath)
|
||||
if (!isFeignDeath)
|
||||
if (!UpdateVictim())
|
||||
return;
|
||||
|
||||
@@ -657,7 +657,7 @@ public:
|
||||
else
|
||||
powerSurgeTimer -= uiDiff;
|
||||
|
||||
if(!isFeignDeath)
|
||||
if (!isFeignDeath)
|
||||
DoMeleeAttackIfReady();
|
||||
}
|
||||
|
||||
@@ -825,7 +825,7 @@ public:
|
||||
|
||||
void KilledUnit(Unit* victim) override
|
||||
{
|
||||
if(victim->GetTypeId() == TYPEID_PLAYER)
|
||||
if (victim->GetTypeId() == TYPEID_PLAYER)
|
||||
Talk(SAY_FEUGEN_SLAY);
|
||||
}
|
||||
|
||||
|
||||
@@ -188,7 +188,7 @@ class instance_naxxramas : public InstanceMapScript
|
||||
AddMinion(creature, false);
|
||||
}
|
||||
|
||||
void ProcessEvent(WorldObject* source, uint32 eventId) override
|
||||
void ProcessEvent(WorldObject* /*source*/, uint32 eventId) override
|
||||
{
|
||||
switch (eventId)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user