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)
|
if (!unit)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (_player->IsHostileTo(unit))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// TODO: Unit::SetCharmedBy: 28782 is not in world but 0 is trying to charm it! -> crash
|
// TODO: Unit::SetCharmedBy: 28782 is not in world but 0 is trying to charm it! -> crash
|
||||||
if (!unit->IsInWorld())
|
if (!unit->IsInWorld())
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user