From 206556b1113918de6b05ce2146ee0d5fe54d5226 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 3 May 2009 11:06:48 -0500 Subject: [PATCH] *Fix broken creature trigger spell visual effect. --HG-- branch : trunk --- src/game/Map.cpp | 3 ++- 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 b6aae4131d..7f9a24bc48 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 cec9c50b71..a0e9ab4a98 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; }