mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-15 12:31:31 +00:00
[Bug Fix] NPC Armor Upgrade to a slot not handled correctly (#3366)
* [NPC Armor - Bug] NPC upgardes in armor not correct * Revert "[NPC Armor - Bug] NPC upgardes in armor not correct" This reverts commit d5a68654a791073a60aa6d2457250481633cb579. * [NPC item bonuses] Upgrades not processed correctly * Update loottables.cpp --------- Co-authored-by: Kinglykrab <kinglykrab@gmail.com>
This commit is contained in:
parent
b8c91cf4f9
commit
e305ba852b
@ -395,9 +395,15 @@ void NPC::AddLootDrop(
|
|||||||
foundslot = i;
|
foundslot = i;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
// Unequip old item
|
||||||
|
auto* olditem = GetItem(i);
|
||||||
|
|
||||||
|
olditem->equip_slot = EQ::invslot::SLOT_INVALID;
|
||||||
|
|
||||||
equipment[i] = item2->ID;
|
equipment[i] = item2->ID;
|
||||||
|
|
||||||
foundslot = i;
|
foundslot = i;
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
} // end if ac
|
} // end if ac
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user