Fixed augmentation skills were not removed from accessories.
Contributed by Sahar.
This commit is contained in:
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
@@ -132,9 +132,14 @@ public class RequestRefineCancel extends GameClientPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -144,7 +149,6 @@ public class RequestRefineCancel extends GameClientPacket
|
|||||||
player.sendPacket(new ExVariationCancelResult(1));
|
player.sendPacket(new ExVariationCancelResult(1));
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
final InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendPacket(iu);
|
player.sendPacket(iu);
|
||||||
|
|
||||||
|
@@ -145,9 +145,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -157,7 +162,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
player.sendPacket(new ExVariationCancelResult(1));
|
player.sendPacket(new ExVariationCancelResult(1));
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
final InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendPacket(iu);
|
player.sendPacket(iu);
|
||||||
}
|
}
|
||||||
|
@@ -145,9 +145,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -157,7 +162,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
player.sendPacket(new ExVariationCancelResult(1));
|
player.sendPacket(new ExVariationCancelResult(1));
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
final InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendPacket(iu);
|
player.sendPacket(iu);
|
||||||
}
|
}
|
||||||
|
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
@@ -89,9 +89,14 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
}
|
}
|
||||||
|
|
||||||
// unequip item
|
// unequip item
|
||||||
|
final InventoryUpdate iu = new InventoryUpdate();
|
||||||
if (targetItem.isEquipped())
|
if (targetItem.isEquipped())
|
||||||
{
|
{
|
||||||
player.disarmWeapons();
|
final ItemInstance[] unequiped = player.getInventory().unEquipItemInSlotAndRecord(targetItem.getLocationSlot());
|
||||||
|
for (ItemInstance itm : unequiped)
|
||||||
|
{
|
||||||
|
iu.addModifiedItem(itm);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// remove the augmentation
|
// remove the augmentation
|
||||||
@@ -101,7 +106,6 @@ public class RequestRefineCancel implements IClientIncomingPacket
|
|||||||
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
client.sendPacket(ExVariationCancelResult.STATIC_PACKET_SUCCESS);
|
||||||
|
|
||||||
// send inventory update
|
// send inventory update
|
||||||
InventoryUpdate iu = new InventoryUpdate();
|
|
||||||
iu.addModifiedItem(targetItem);
|
iu.addModifiedItem(targetItem);
|
||||||
player.sendInventoryUpdate(iu);
|
player.sendInventoryUpdate(iu);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user