mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-18 03:15:41 +00:00
fix(Core/Spells): Fix spellclick (#8232)
This commit is contained in:
committed by
GitHub
parent
b714e37c6c
commit
faa4035de7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user