*Fix broken creature trigger spell visual effect.
--HG-- branch : trunk
This commit is contained in:
+2
-1
@@ -519,7 +519,8 @@ Map::Add(T *obj)
|
||||
DEBUG_LOG("Object %u enters grid[%u,%u]", GUID_LOPART(obj->GetGUID()), cell.GridX(), cell.GridY());
|
||||
|
||||
//something, such as vehicle, needs to be update immediately
|
||||
if(obj->GetTypeId() != TYPEID_UNIT)
|
||||
//also, trigger needs to cast spell, if not update, cannot see visual
|
||||
//if(obj->GetTypeId() != TYPEID_UNIT)
|
||||
UpdateObjectVisibility(obj,cell,p);
|
||||
|
||||
AddNotifier(obj);
|
||||
|
||||
+3
-3
@@ -1652,7 +1652,7 @@ TempSummon *Map::SummonCreature(uint32 entry, float x, float y, float z, float a
|
||||
Add((Creature*)summon);
|
||||
summon->InitSummon(duration);
|
||||
|
||||
ObjectAccessor::UpdateObjectVisibility(summon);
|
||||
//ObjectAccessor::UpdateObjectVisibility(summon);
|
||||
|
||||
return summon;
|
||||
}
|
||||
@@ -1711,7 +1711,7 @@ Vehicle* WorldObject::SummonVehicle(uint32 entry, float x, float y, float z, flo
|
||||
|
||||
map->Add((Creature*)v);
|
||||
|
||||
ObjectAccessor::UpdateObjectVisibility(v);
|
||||
//ObjectAccessor::UpdateObjectVisibility(v);
|
||||
|
||||
return v;
|
||||
}
|
||||
@@ -1817,7 +1817,7 @@ Pet* Player::SummonPet(uint32 entry, float x, float y, float z, float ang, PetTy
|
||||
if(duration > 0)
|
||||
pet->SetDuration(duration);
|
||||
|
||||
ObjectAccessor::UpdateObjectVisibility(pet);
|
||||
//ObjectAccessor::UpdateObjectVisibility(pet);
|
||||
|
||||
return pet;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user