mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 04:16:46 +00:00
[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:
+2
-5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user