mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-10 20:19:49 +01:00
Core/Misc: Fix static analysis issues
(cherry picked from commit a80c95a1c7)
This commit is contained in:
@@ -490,8 +490,7 @@ public:
|
||||
{
|
||||
if (axe->GetVictim())
|
||||
ResetThreat(axe->GetVictim(), axe);
|
||||
if (target)
|
||||
AddThreat(target, 1000000.0f, axe);
|
||||
AddThreat(target, 1000000.0f, axe);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -561,15 +561,12 @@ public:
|
||||
Rebirth = true;
|
||||
}
|
||||
|
||||
if (Rebirth)
|
||||
if (Death_Timer <= diff)
|
||||
{
|
||||
if (Death_Timer <= diff)
|
||||
{
|
||||
me->SummonCreature(CREATURE_PHOENIX_EGG, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 45000);
|
||||
me->DisappearAndDie();
|
||||
Rebirth = false;
|
||||
} else Death_Timer -= diff;
|
||||
}
|
||||
me->SummonCreature(CREATURE_PHOENIX_EGG, 0.0f, 0.0f, 0.0f, 0.0f, TEMPSUMMON_TIMED_OR_CORPSE_DESPAWN, 45000);
|
||||
me->DisappearAndDie();
|
||||
Rebirth = false;
|
||||
} else Death_Timer -= diff;
|
||||
}
|
||||
|
||||
if (!UpdateVictim())
|
||||
|
||||
Reference in New Issue
Block a user