fix(Core/Spells): Fix spellclick (#8232)
This commit is contained in:
parent
b714e37c6c
commit
faa4035de7
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue