mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-19 00:48:56 +01:00
*Do not destroy unit for owner when it stealth
--HG-- branch : trunk
This commit is contained in:
@@ -10365,7 +10365,8 @@ void Unit::DestroyForNearbyPlayers()
|
||||
VisitNearbyWorldObject(World::GetMaxVisibleDistance(), searcher);
|
||||
for(std::list<Unit*>::iterator iter = targets.begin(); iter != targets.end(); ++iter)
|
||||
if(*iter != this && (*iter)->GetTypeId() == TYPEID_PLAYER
|
||||
&& ((Player*)(*iter))->HaveAtClient(this))
|
||||
&& ((Player*)(*iter))->HaveAtClient(this)
|
||||
&& GetCharmerGUID() != (*iter)->GetGUID()) // TODO: this is for puppet
|
||||
{
|
||||
DestroyForPlayer((Player*)(*iter));
|
||||
((Player*)(*iter))->m_clientGUIDs.erase(GetGUID());
|
||||
|
||||
Reference in New Issue
Block a user