diff --git a/src/server/game/Handlers/SpellHandler.cpp b/src/server/game/Handlers/SpellHandler.cpp index c58307e05..7fbdef0a4 100644 --- a/src/server/game/Handlers/SpellHandler.cpp +++ b/src/server/game/Handlers/SpellHandler.cpp @@ -642,6 +642,11 @@ void WorldSession::HandleSpellClick(WorldPacket& recvData) if (!unit) return; + if (_player->IsHostileTo(unit)) + { + return; + } + // TODO: Unit::SetCharmedBy: 28782 is not in world but 0 is trying to charm it! -> crash if (!unit->IsInWorld()) return;