aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2016-10-02 22:59:57 +0200
committerShauren <shauren.trinity@gmail.com>2016-10-02 22:59:57 +0200
commit3c7881042f43fbc44afea3273d7b177d0f1fc682 (patch)
treee61dd9e2a283488c6b51a6934b9c7c34976cf2c9
parent07e0d43ac3eb6812d746931190b8afe76f13fb12 (diff)
Core/Items: Fixed saving artifact power gains
-rw-r--r--src/server/game/Entities/Item/Item.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/game/Entities/Item/Item.cpp b/src/server/game/Entities/Item/Item.cpp
index 377220f070b..aa8eff81aaf 100644
--- a/src/server/game/Entities/Item/Item.cpp
+++ b/src/server/game/Entities/Item/Item.cpp
@@ -2400,7 +2400,7 @@ void Item::CopyArtifactDataFromParent(Item* parent)
void Item::GiveArtifactXp(int32 amount, Item* sourceItem, uint32 artifactCategoryId)
{
- Player const* owner = GetOwner();
+ Player* owner = GetOwner();
if (!owner)
return;
@@ -2430,6 +2430,8 @@ void Item::GiveArtifactXp(int32 amount, Item* sourceItem, uint32 artifactCategor
artifactXpGain.ArtifactGUID = GetGUID();
artifactXpGain.Amount = amount;
owner->SendDirectMessage(artifactXpGain.Write());
+
+ SetState(ITEM_CHANGED, owner);
}
void BonusData::Initialize(ItemTemplate const* proto)