[8795] Reset UNIT_FIELD_AURASTATE before aura load or health/etc set.

This resolve problem when some aura state not remove aftre reload and original aura source lost.
This commit is contained in:
VladimirMangos 2009-11-08 22:34:21 +03:00
parent 3c1aef871a
commit 29949518b5
2 changed files with 4 additions and 1 deletions

View file

@ -2506,6 +2506,9 @@ void Player::InitStatsForLevel(bool reapplyMods)
SetUInt32Value(PLAYER_FIELD_MAX_LEVEL, sWorld.getConfig(CONFIG_MAX_PLAYER_LEVEL) );
SetUInt32Value(PLAYER_NEXT_LEVEL_XP, sObjectMgr.GetXPForLevel(getLevel()));
// reset before any aura state sources (health set/aura apply)
SetUInt32Value(UNIT_FIELD_AURASTATE, 0);
UpdateSkillsForLevel ();
// set default cast time multiplier

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "8794"
#define REVISION_NR "8795"
#endif // __REVISION_NR_H__