mirror of
https://github.com/mangosfour/server.git
synced 2025-12-23 07:37:01 +00:00
[9278] Prevent reapply charged/noaffect spellmod to persistent auras.
This commit is contained in:
parent
965bd2272b
commit
26d71e3328
2 changed files with 19 additions and 1 deletions
|
|
@ -1424,6 +1424,24 @@ void Aura::HandleAddModifier(bool apply, bool Real)
|
||||||
|
|
||||||
((Player*)m_target)->AddSpellMod(m_spellmod, apply);
|
((Player*)m_target)->AddSpellMod(m_spellmod, apply);
|
||||||
|
|
||||||
|
// not reapply spell mods with charges (use original value because processed and at remove)
|
||||||
|
if (m_spellProto->procCharges)
|
||||||
|
return;
|
||||||
|
|
||||||
|
// not reapply some spell mods ops (mostly speedup case)
|
||||||
|
switch (m_modifier.m_miscvalue)
|
||||||
|
{
|
||||||
|
case SPELLMOD_DURATION:
|
||||||
|
case SPELLMOD_CHARGES:
|
||||||
|
case SPELLMOD_NOT_LOSE_CASTING_TIME:
|
||||||
|
case SPELLMOD_CASTING_TIME:
|
||||||
|
case SPELLMOD_COOLDOWN:
|
||||||
|
case SPELLMOD_COST:
|
||||||
|
case SPELLMOD_ACTIVATION_TIME:
|
||||||
|
case SPELLMOD_CASTING_TIME_OLD:
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// reapply talents to own passive persistent auras
|
// reapply talents to own passive persistent auras
|
||||||
ReapplyAffectedPassiveAuras(m_target, true);
|
ReapplyAffectedPassiveAuras(m_target, true);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "9277"
|
#define REVISION_NR "9278"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue