aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-12-22 10:59:38 -0600
committermegamage <none@none>2008-12-22 10:59:38 -0600
commit65ef38963ddc60e05491ca9d3e2685913c0038bb (patch)
tree740f287e537982028ac4b0974d4a88aeae9075d8 /src/game/Player.cpp
parentf7dd2df7955f5c5d17ee2ad27fb6c9a0f89d7196 (diff)
*The last merge from Mangos TBC. Update to Mangos v0.12.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 314e6c5ac09..1f3e4e120f9 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -11641,9 +11641,9 @@ void Player::ApplyEnchantment(Item *item,EnchantmentSlot slot,bool apply, bool a
{
if(apply)
{
- int32 basepoints = int32(enchant_amount);
+ int32 basepoints = 0;
// Random Property Exist - try found basepoints for spell (basepoints depends from item suffix factor)
- if (item->GetItemRandomPropertyId() !=0 && !enchant_amount)
+ if (item->GetItemRandomPropertyId())
{
ItemRandomSuffixEntry const *item_rand = sItemRandomSuffixStore.LookupEntry(abs(item->GetItemRandomPropertyId()));
if (item_rand)