mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 09:06:46 +00:00
Add loregroup 0 bypass for lore conflicts for bots like clients
This commit is contained in:
+2
-1
@@ -7168,8 +7168,9 @@ void Bot::CalcBotStats(bool showtext) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool Bot::CheckLoreConflict(const EQ::ItemData* item) {
|
bool Bot::CheckLoreConflict(const EQ::ItemData* item) {
|
||||||
if (!item || !(item->LoreFlag))
|
if (!item || !(item->LoreFlag) || (item->LoreGroup == 0)) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (item->LoreGroup == -1) // Standard lore items; look everywhere except the shared bank, return the result
|
if (item->LoreGroup == -1) // Standard lore items; look everywhere except the shared bank, return the result
|
||||||
return (m_inv.HasItem(item->ID, 0, invWhereWorn) != INVALID_INDEX);
|
return (m_inv.HasItem(item->ID, 0, invWhereWorn) != INVALID_INDEX);
|
||||||
|
|||||||
Reference in New Issue
Block a user