[9278] Prevent reapply charged/noaffect spellmod to persistent auras.

This commit is contained in:
VladimirMangos 2010-01-31 22:07:30 +03:00
parent 965bd2272b
commit 26d71e3328
2 changed files with 19 additions and 1 deletions

View file

@ -1424,6 +1424,24 @@ void Aura::HandleAddModifier(bool apply, bool Real)
((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
ReapplyAffectedPassiveAuras(m_target, true);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9277"
#define REVISION_NR "9278"
#endif // __REVISION_NR_H__