Scripts and sessions update to align with acore (#987)

This commit is contained in:
Yunfan Li
2025-02-22 12:08:53 +08:00
committed by GitHub
parent a44650c7f6
commit 62e0235e73
4 changed files with 15 additions and 28 deletions

View File

@@ -5431,7 +5431,7 @@ InventoryResult PlayerbotAI::CanEquipItem(uint8 slot, uint16& dest, Item* pItem,
ItemTemplate const* pProto = pItem->GetTemplate();
if (pProto)
{
if (!sScriptMgr->CanEquipItem(bot, slot, dest, pItem, swap, not_loading))
if (!sScriptMgr->OnPlayerCanEquipItem(bot, slot, dest, pItem, swap, not_loading))
return EQUIP_ERR_CANT_DO_RIGHT_NOW;
// item used