*Add unit to notify when unit is add to world (including load grid case).
*Add some check in remove object function. --HG-- branch : trunk
This commit is contained in:
1 parent
0c2dd85c2c
commit
a7e04a252f
4 files changed
+18
-9
No files matched your search
+10
-5
@@ -66,11 +66,6 @@ float baseMoveSpeed[MAX_MOVE_TYPE] =
|
||||
|
||||
void InitTriggerAuraData();
|
||||
|
||||
void Unit::AddToWorld()
|
||||
{
|
||||
WorldObject::AddToWorld();
|
||||
}
|
||||
|
||||
// auraTypes contains attacker auras capable of proc'ing cast auras
|
||||
static Unit::AuraTypeSet GenerateAttakerProcCastAuraTypes()
|
||||
{
|
||||
@@ -10853,6 +10848,16 @@ uint32 Unit::GetCreatePowers( Powers power ) const
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Unit::AddToWorld()
|
||||
{
|
||||
if(!IsInWorld())
|
||||
{
|
||||
m_Notified = false;
|
||||
m_IsInNotifyList = false;
|
||||
SetToNotify();
|
||||
}
|
||||
}
|
||||
|
||||
void Unit::RemoveFromWorld()
|
||||
{
|
||||
// cleanup
|
||||
|
||||
Reference in new issue
Block a user