From 045dec19fa0322840d2e0e8ff4b1cda88c87ee5c Mon Sep 17 00:00:00 2001 From: QAston Date: Thu, 28 Jul 2011 13:21:31 +0200 Subject: CoreSpells: Typofixes: fix area auras autocast and usage of items in combat. --- src/server/game/Server/Protocol/Handlers/SpellHandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/game/Server/Protocol') diff --git a/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp b/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp index 0f309ea5fc2..247d2c5ceee 100755 --- a/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp +++ b/src/server/game/Server/Protocol/Handlers/SpellHandler.cpp @@ -141,7 +141,7 @@ void WorldSession::HandleUseItemOpcode(WorldPacket& recvPacket) { if (SpellInfo const *spellInfo = sSpellMgr->GetSpellInfo(proto->Spells[i].SpellId)) { - if (spellInfo->CanBeUsedInCombat()) + if (!spellInfo->CanBeUsedInCombat()) { pUser->SendEquipError(EQUIP_ERR_NOT_IN_COMBAT, pItem, NULL); return; -- cgit v1.2.3