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) {
|
if (buy != null) {
|
||||||
me.transferEnchants(buy);
|
me.transferEnchants(buy);
|
||||||
itemMan.addItemToInventory(buy);
|
itemMan.addItemToInventory(buy);
|
||||||
|
buy.stripCastableEnchants();
|
||||||
if(npc.contractUUID == 900 && buy.getItemBaseID() == 1705032){
|
if(npc.contractUUID == 900 && buy.getItemBaseID() == 1705032){
|
||||||
buy.setNumOfItems(10);
|
buy.setNumOfItems(10);
|
||||||
DbManager.ItemQueries.UPDATE_NUM_ITEMS(buy,buy.getNumOfItems());
|
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)
|
if (player.getCharItemManager().hasRoomInventory(targetItem.getItemBase().getWeight()) == false)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
targetItem.stripCastableEnchants();
|
||||||
|
|
||||||
player.getCharItemManager().buyFromNPC(targetItem, vendor);
|
player.getCharItemManager().buyFromNPC(targetItem, vendor);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1510,6 +1510,8 @@ public class CharacterItemManager {
|
|||||||
if (purchasedItem == null || npc == null)
|
if (purchasedItem == null || npc == null)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
purchasedItem.stripCastableEnchants();
|
||||||
|
|
||||||
itemMan = npc.getCharItemManager();
|
itemMan = npc.getCharItemManager();
|
||||||
|
|
||||||
if (itemMan == null)
|
if (itemMan == null)
|
||||||
|
|||||||
Reference in New Issue
Block a user