Skip to content

Commit

Permalink
[9278] Prevent reapply charged/noaffect spellmod to persistent auras.
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirMangos committed Jan 31, 2010
1 parent 0f973fc commit 6b5f2b6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions src/game/SpellAuras.cpp
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9277"
#define REVISION_NR "9278"
#endif // __REVISION_NR_H__

0 comments on commit 6b5f2b6

Please sign in to comment.