mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[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:
parent
3c1aef871a
commit
29949518b5
2 changed files with 4 additions and 1 deletions
|
|
@ -2506,6 +2506,9 @@ void Player::InitStatsForLevel(bool reapplyMods)
|
||||||
SetUInt32Value(PLAYER_FIELD_MAX_LEVEL, sWorld.getConfig(CONFIG_MAX_PLAYER_LEVEL) );
|
SetUInt32Value(PLAYER_FIELD_MAX_LEVEL, sWorld.getConfig(CONFIG_MAX_PLAYER_LEVEL) );
|
||||||
SetUInt32Value(PLAYER_NEXT_LEVEL_XP, sObjectMgr.GetXPForLevel(getLevel()));
|
SetUInt32Value(PLAYER_NEXT_LEVEL_XP, sObjectMgr.GetXPForLevel(getLevel()));
|
||||||
|
|
||||||
|
// reset before any aura state sources (health set/aura apply)
|
||||||
|
SetUInt32Value(UNIT_FIELD_AURASTATE, 0);
|
||||||
|
|
||||||
UpdateSkillsForLevel ();
|
UpdateSkillsForLevel ();
|
||||||
|
|
||||||
// set default cast time multiplier
|
// set default cast time multiplier
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "8794"
|
#define REVISION_NR "8795"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue