diff options
| author | megamage <none@none> | 2009-05-03 11:06:48 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-05-03 11:06:48 -0500 |
| commit | 206556b1113918de6b05ce2146ee0d5fe54d5226 (patch) | |
| tree | b934586b46022bb43b70ab685cc409fe39ef4c87 /src | |
| parent | 977295bb59ebf896fdde3814614396642a87536b (diff) | |
*Fix broken creature trigger spell visual effect.
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/game/Map.cpp | 3 | ||||
| -rw-r--r-- | src/game/Object.cpp | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/game/Map.cpp b/src/game/Map.cpp index b6aae4131d5..7f9a24bc484 100644 --- a/src/game/Map.cpp +++ b/src/game/Map.cpp @@ -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); diff --git a/src/game/Object.cpp b/src/game/Object.cpp index cec9c50b71e..a0e9ab4a98a 100644 --- a/src/game/Object.cpp +++ b/src/game/Object.cpp @@ -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; } |
