Core/Misc: Fix static analysis issues

(cherry picked from commit a80c95a1c7)
This commit is contained in:
jackpoz
2017-11-12 12:44:45 +01:00
committed by Shauren
parent 388034498f
commit 852c9e9108
6 changed files with 10 additions and 17 deletions

View File

@@ -490,8 +490,7 @@ public:
{
if (axe->GetVictim())
ResetThreat(axe->GetVictim(), axe);
if (target)
AddThreat(target, 1000000.0f, axe);
AddThreat(target, 1000000.0f, axe);
}
}
}

View File

@@ -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())