aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-01-04 09:54:21 -0600
committermegamage <none@none>2009-01-04 09:54:21 -0600
commit3797d15426846d258075742448858f834259e4c5 (patch)
treeae9770a84bb7a39fe632ed6f56855756dd80d964 /src/game/Player.cpp
parentf1d613432047ad4106f4fbbd5f8875a223b60d15 (diff)
*Mangos [7019] Fix AP/RAP bonus from stat at aura apply/remove. Not use CLASSMASK_WAND_USERS mask for AP bonus. By DiSlord.
*Mangos [7020] Initilize glyph order at loading/reset. This must fix problems with glyph use for old(converted) characters. By VladimirMangos. --HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 552b49b481d..1fca0b32067 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -606,13 +606,6 @@ bool Player::Create( uint32 guidlow, const std::string& name, uint8 race, uint8
SetUInt32Value( PLAYER_FIELD_TODAY_CONTRIBUTION, 0 );
SetUInt32Value( PLAYER_FIELD_YESTERDAY_CONTRIBUTION, 0 );
- for(uint32 i = 0; i < sGlyphSlotStore.GetNumRows(); ++i)
- {
- GlyphSlotEntry const * gs = sGlyphSlotStore.LookupEntry(i);
- if(gs && gs->Order)
- SetGlyphSlot(gs->Order - 1, gs->Id);
- }
-
// set starting level
uint32 start_level = getClass() != CLASS_DEATH_KNIGHT
? sWorld.getConfig(CONFIG_START_PLAYER_LEVEL)
@@ -19790,6 +19783,11 @@ uint32 Player::GetBarberShopCost(uint8 newhairstyle, uint8 newhaircolor, uint8 n
void Player::InitGlyphsForLevel()
{
+ for(uint32 i = 0; i < sGlyphSlotStore.GetNumRows(); ++i)
+ if(GlyphSlotEntry const * gs = sGlyphSlotStore.LookupEntry(i))
+ if(gs->Order)
+ SetGlyphSlot(gs->Order - 1, gs->Id);
+
uint32 level = getLevel();
uint32 value = 0;