[7325] Always have flag UNIT_FLAG2_REGENERATE_POWER set for loaded character.

Original patch provided by nos4r2zod.
This commit is contained in:
VladimirMangos 2009-02-22 06:18:06 +03:00
parent 2046aee715
commit 218571a817
2 changed files with 3 additions and 1 deletions

View file

@ -2374,6 +2374,8 @@ void Player::InitStatsForLevel(bool reapplyMods)
UNIT_FLAG_SKINNABLE | UNIT_FLAG_MOUNT | UNIT_FLAG_TAXI_FLIGHT );
SetFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_PVP_ATTACKABLE ); // must be set
SetFlag(UNIT_FIELD_FLAGS_2,UNIT_FLAG2_REGENERATE_POWER);// must be set
// cleanup player flags (will be re-applied if need at aura load), to avoid have ghost flag without ghost aura, for example.
RemoveFlag(PLAYER_FLAGS, PLAYER_FLAGS_AFK | PLAYER_FLAGS_DND | PLAYER_FLAGS_GM | PLAYER_FLAGS_GHOST);

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "7324"
#define REVISION_NR "7325"
#endif // __REVISION_NR_H__