[7757] Not remove auras required for casting warrior enrage aura state at this state lost.

This commit is contained in:
VladimirMangos 2009-05-04 14:09:10 +04:00
parent 255ed61a86
commit 15d449c161
2 changed files with 21 additions and 17 deletions

View file

@ -7319,6 +7319,9 @@ void Unit::ModifyAuraState(AuraState flag, bool apply)
if (HasFlag(UNIT_FIELD_AURASTATE,1<<(flag-1)))
{
RemoveFlag(UNIT_FIELD_AURASTATE, 1<<(flag-1));
if (flag != AURA_STATE_ENRAGE) // enrage aura state triggering continues auras
{
Unit::AuraMap& tAuras = GetAuras();
for (Unit::AuraMap::iterator itr = tAuras.begin(); itr != tAuras.end();)
{
@ -7340,6 +7343,7 @@ void Unit::ModifyAuraState(AuraState flag, bool apply)
}
}
}
}
}
Unit *Unit::GetOwner() const

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7756"
#define REVISION_NR "7757"
#endif // __REVISION_NR_H__