Skip to content

Commit faa4035

Browse files
author
IntelligentQuantum
authored
fix(Core/Spells): Fix spellclick (#8232)
1 parent b714e37 commit faa4035

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/server/game/Handlers/SpellHandler.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,11 @@ void WorldSession::HandleSpellClick(WorldPacket& recvData)
642642
if (!unit)
643643
return;
644644

645+
if (_player->IsHostileTo(unit))
646+
{
647+
return;
648+
}
649+
645650
// TODO: Unit::SetCharmedBy: 28782 is not in world but 0 is trying to charm it! -> crash
646651
if (!unit->IsInWorld())
647652
return;

0 commit comments

Comments
 (0)