strip hones and procs when buying or taking from NPC inventory
This commit is contained in:
@@ -1480,6 +1480,7 @@ public class ClientMessagePump implements NetMsgHandler {
|
||||
if (buy != null) {
|
||||
me.transferEnchants(buy);
|
||||
itemMan.addItemToInventory(buy);
|
||||
buy.stripCastableEnchants();
|
||||
if(npc.contractUUID == 900 && buy.getItemBaseID() == 1705032){
|
||||
buy.setNumOfItems(10);
|
||||
DbManager.ItemQueries.UPDATE_NUM_ITEMS(buy,buy.getNumOfItems());
|
||||
|
||||
@@ -415,6 +415,8 @@ public class ItemProductionMsgHandler extends AbstractClientMsgHandler {
|
||||
if (player.getCharItemManager().hasRoomInventory(targetItem.getItemBase().getWeight()) == false)
|
||||
return;
|
||||
|
||||
targetItem.stripCastableEnchants();
|
||||
|
||||
player.getCharItemManager().buyFromNPC(targetItem, vendor);
|
||||
|
||||
}
|
||||
|
||||
@@ -1510,6 +1510,8 @@ public class CharacterItemManager {
|
||||
if (purchasedItem == null || npc == null)
|
||||
return false;
|
||||
|
||||
purchasedItem.stripCastableEnchants();
|
||||
|
||||
itemMan = npc.getCharItemManager();
|
||||
|
||||
if (itemMan == null)
|
||||
|
||||
Reference in New Issue
Block a user