mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
*Do unit relocation notification only once per update. Hope this can solve the stealth crash problem once for all.
--HG-- branch : trunk
This commit is contained in:
@@ -148,6 +148,7 @@ bool IsPassiveStackableSpell( uint32 spellId )
|
||||
|
||||
Unit::Unit()
|
||||
: WorldObject(), i_motionMaster(this), m_ThreatManager(this), m_HostilRefManager(this)
|
||||
, m_IsInNotifyList(false), m_Notified(false)
|
||||
{
|
||||
m_objectType |= TYPEMASK_UNIT;
|
||||
m_objectTypeId = TYPEID_UNIT;
|
||||
@@ -12562,3 +12563,11 @@ void Unit::RemoveAurasAtChanneledTarget(SpellEntry const* spellInfo)
|
||||
++iter;
|
||||
}
|
||||
}
|
||||
|
||||
/*-----------------------TRINITY-----------------------------*/
|
||||
|
||||
void Unit::SetToNotify()
|
||||
{
|
||||
if(Map *map = GetMap())
|
||||
map->AddUnitToNotify(this);
|
||||
}
|
||||
Reference in New Issue
Block a user