mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-15 23:20:36 +01:00
Core: Update to 10.1.5
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user