strip temporary item enchants when transfered

This commit is contained in:
FatBoy committed 2024-09-05 19:19:34 -05:00
1 parent a4b83ca9a0
commit 1fe242a284
2 files changed
+27

No files matched your search

@@ -610,6 +610,8 @@ public class CharacterItemManager {
if (i == null)
return false;
i.stripCastableEnchants();
if (!this.doesCharOwnThisItem(i.getObjectUUID()))
return false;
@@ -2009,6 +2011,7 @@ public class CharacterItemManager {
if (item.getItemBase().getType().equals(ItemType.GOLD)) {
int amt = item.getNumOfItems();
item.setNumOfItems(0);
item.stripCastableEnchants();
MobLoot ml = new MobLoot(this.absCharacter, amt);
ml.zeroItem();
ml.containerType = Enum.ItemContainerType.INVENTORY;