mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-26 19:47:16 +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 d5a68654a7.
* [NPC item bonuses] Upgrades not processed correctly
* Update loottables.cpp
---------
Co-authored-by: Kinglykrab <kinglykrab@gmail.com>
This commit is contained in:
+7
-1
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user