mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-24 15:52:26 +00:00
Quick fix for RoF+ AugDistiller 0
This needs more work, but it works for now
This commit is contained in:
parent
34549a4bdb
commit
4ab420ed99
@ -2993,9 +2993,12 @@ void Client::Handle_OP_AugmentItem(const EQApplicationPacket *app)
|
|||||||
|
|
||||||
if (!solvent)
|
if (!solvent)
|
||||||
{
|
{
|
||||||
Log(Logs::General, Logs::Error, "Player tried to safely remove an augment without a distiller.");
|
old_aug = tobe_auged->GetAugment(in_augment->augment_index);
|
||||||
Message(13, "Error: Missing an augmentation distiller for safely removing this augment.");
|
if (!old_aug || old_aug->GetItem()->AugDistiller != 0) {
|
||||||
return;
|
Log(Logs::General, Logs::Error, "Player tried to safely remove an augment without a distiller.");
|
||||||
|
Message(13, "Error: Missing an augmentation distiller for safely removing this augment.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (solvent->GetItem()->ItemType == EQEmu::item::ItemTypeAugmentationDistiller)
|
else if (solvent->GetItem()->ItemType == EQEmu::item::ItemTypeAugmentationDistiller)
|
||||||
{
|
{
|
||||||
@ -3159,7 +3162,8 @@ void Client::Handle_OP_AugmentItem(const EQApplicationPacket *app)
|
|||||||
if (itemOneToPush && itemTwoToPush)
|
if (itemOneToPush && itemTwoToPush)
|
||||||
{
|
{
|
||||||
// Consume the augment distiller
|
// Consume the augment distiller
|
||||||
DeleteItemInInventory(solvent_slot, solvent->IsStackable() ? 1 : 0, true);
|
if (solvent)
|
||||||
|
DeleteItemInInventory(solvent_slot, solvent->IsStackable() ? 1 : 0, true);
|
||||||
|
|
||||||
// Remove the augmented item
|
// Remove the augmented item
|
||||||
DeleteItemInInventory(item_slot, 0, true);
|
DeleteItemInInventory(item_slot, 0, true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user