mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 16:37:01 +00:00
[12209] Update mana regen to 4.x
Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
This commit is contained in:
parent
378aaa4daf
commit
832f9b1a46
9 changed files with 30 additions and 42 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue