Quick fix for RoF+ AugDistiller 0

This needs more work, but it works for now
This commit is contained in:
Michael Cook (mackal) 2017-04-27 13:36:02 -04:00
parent 34549a4bdb
commit 4ab420ed99

View File

@ -2993,10 +2993,13 @@ void Client::Handle_OP_AugmentItem(const EQApplicationPacket *app)
if (!solvent) if (!solvent)
{ {
old_aug = tobe_auged->GetAugment(in_augment->augment_index);
if (!old_aug || old_aug->GetItem()->AugDistiller != 0) {
Log(Logs::General, Logs::Error, "Player tried to safely remove an augment without a distiller."); 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."); Message(13, "Error: Missing an augmentation distiller for safely removing this augment.");
return; return;
} }
}
else if (solvent->GetItem()->ItemType == EQEmu::item::ItemTypeAugmentationDistiller) else if (solvent->GetItem()->ItemType == EQEmu::item::ItemTypeAugmentationDistiller)
{ {
old_aug = tobe_auged->GetAugment(in_augment->augment_index); old_aug = tobe_auged->GetAugment(in_augment->augment_index);
@ -3159,6 +3162,7 @@ void Client::Handle_OP_AugmentItem(const EQApplicationPacket *app)
if (itemOneToPush && itemTwoToPush) if (itemOneToPush && itemTwoToPush)
{ {
// Consume the augment distiller // Consume the augment distiller
if (solvent)
DeleteItemInInventory(solvent_slot, solvent->IsStackable() ? 1 : 0, true); DeleteItemInInventory(solvent_slot, solvent->IsStackable() ? 1 : 0, true);
// Remove the augmented item // Remove the augmented item