mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 13:37:01 +00:00
[c12547] Consider SPELL_ATTR_EX5_START_PERIODIC_AT_APPLY for regen auras
This commit is contained in:
parent
d4f3fed660
commit
0cac3be04c
2 changed files with 7 additions and 3 deletions
|
|
@ -6059,7 +6059,9 @@ void Aura::HandleAuraModTotalManaPercentRegen(bool apply, bool /*Real*/)
|
|||
if (m_modifier.periodictime == 0)
|
||||
m_modifier.periodictime = 1000;
|
||||
|
||||
if (!GetSpellProto()->HasAttribute(SPELL_ATTR_EX5_START_PERIODIC_AT_APPLY))
|
||||
m_periodicTimer = m_modifier.periodictime;
|
||||
|
||||
m_isPeriodic = apply;
|
||||
}
|
||||
|
||||
|
|
@ -6068,7 +6070,9 @@ void Aura::HandleModRegen(bool apply, bool /*Real*/) // eating
|
|||
if (m_modifier.periodictime == 0)
|
||||
m_modifier.periodictime = 5000;
|
||||
|
||||
if (!GetSpellProto()->HasAttribute(SPELL_ATTR_EX5_START_PERIODIC_AT_APPLY))
|
||||
m_periodicTimer = 5000;
|
||||
|
||||
m_isPeriodic = apply;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "12546"
|
||||
#define REVISION_NR "12547"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue