[12209] Update mana regen to 4.x

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
This commit is contained in:
Yaki Khadafi 2012-09-09 21:54:56 +03:00 committed by Antz
parent 378aaa4daf
commit 832f9b1a46
9 changed files with 30 additions and 42 deletions

View file

@ -535,7 +535,6 @@ Unit::Unit() :
m_baseSpellCritChance = 5;
m_CombatTimer = 0;
m_lastManaUseTimer = 0;
// m_victimThreat = 0.0f;
for (int i = 0; i < MAX_SPELL_SCHOOL; ++i)
@ -595,14 +594,6 @@ void Unit::Update(uint32 update_diff, uint32 p_time)
CleanupDeletedAuras();
if (m_lastManaUseTimer)
{
if (update_diff >= m_lastManaUseTimer)
m_lastManaUseTimer = 0;
else
m_lastManaUseTimer -= update_diff;
}
if (CanHaveThreatList())
getThreatManager().UpdateForClient(update_diff);