Core: Update to 10.1.5

This commit is contained in:
Shauren
2023-07-12 16:29:00 +02:00
parent 252da139ad
commit 0cea730fa2
107 changed files with 7346 additions and 2674 deletions

View File

@@ -104,7 +104,7 @@ void WorldSession::HandleUseItemOpcode(WorldPackets::Spells::UseItem& packet)
{
if (SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(effect->SpellID, user->GetMap()->GetDifficultyID()))
{
if (!spellInfo->CanBeUsedInCombat())
if (!spellInfo->CanBeUsedInCombat(user))
{
user->SendEquipError(EQUIP_ERR_NOT_IN_COMBAT, item, nullptr);
return;