Core/Misc: Fix static analysis issues

This commit is contained in:
Aokromes
2017-11-12 15:26:24 +01:00
parent 51d0befe6d
commit 9595e0ca36
4 changed files with 9 additions and 12 deletions

View File

@@ -570,15 +570,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())