aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-02-22 17:47:30 -0600
committermegamage <none@none>2009-02-22 17:47:30 -0600
commitdadb46448539dd3ed64f4bc6993329fce38d2978 (patch)
tree77f53f7937c285f19860a29f51794a74efe8dc25 /src/game/Player.cpp
parent3f401d2f8b1f138ccad01f6b5a27ea5673d85658 (diff)
[7325] Always have flag UNIT_FLAG2_REGENERATE_POWER set for loaded character. Author: VladimirMangos and nos4r2zod.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index f63bd1936a7..97df3168a3d 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -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);