[7325] Always have flag UNIT_FLAG2_REGENERATE_POWER set for loaded character. Author: VladimirMangos and nos4r2zod.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-02-22 17:47:30 -06:00
parent 3f401d2f8b
commit dadb464485
2 changed files with 3 additions and 1 deletions

View File

@@ -2468,6 +2468,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 | PLAYER_ALLOW_ONLY_ABILITY);

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__