From ff17cacda7e2cfd9c331fff3e949c6255bcb9e6a Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 12 May 2024 12:54:11 -0400 Subject: [PATCH] magicvalue update --- src/engine/objects/Item.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/Item.java b/src/engine/objects/Item.java index a1037c98..3ded3ff7 100644 --- a/src/engine/objects/Item.java +++ b/src/engine/objects/Item.java @@ -172,7 +172,6 @@ public class Item extends AbstractWorldObject { } else this.magicValue = this.value; // Value was overridden in vendor inventory - } public static void _serializeForClientMsg(Item item, ByteBufferWriter writer) @@ -972,7 +971,10 @@ public class Item extends AbstractWorldObject { } } - this.magicValue = this.template.item_value + calcMagicValue(); + // Value is overridden the db + + if (this.value == this.template.item_value) + this.magicValue = this.template.item_value + calcMagicValue(); } public void addPermanentEnchantment(String enchantID, int rank) {