[Bug Fix] Fix does_augment_fit_slot method. (#2817)

* [Bug Fix] DoesAugmentFit finds if an Aug Slot is free, changed overload method to check if Aug fits slot.

* Tweak/add lua
This commit is contained in:
Aeadoin
2023-01-31 21:11:12 -05:00
committed by GitHub
parent f410c89815
commit f727c9f75a
3 changed files with 6 additions and 9 deletions
+2 -5
View File
@@ -3980,11 +3980,8 @@ int8 QuestManager::DoesAugmentFit(EQ::ItemInstance* inst, uint32 augment_id, uin
return INVALID_INDEX;
}
if (
augment_slot != 255 &&
!inst->IsAugmentSlotAvailable(aug_inst->AugType, augment_slot)
) {
return INVALID_INDEX;
if (augment_slot != 255) {
return !inst->IsAugmentSlotAvailable(aug_inst->AugType, augment_slot) ? INVALID_INDEX : augment_slot;
}
return inst->AvailableAugmentSlot(aug_inst->AugType);