Changeset 58
- Timestamp:
- 11/19/08 13:30:04 (17 years ago)
- Location:
- trunk/src
- Files:
-
- 3 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bindings/scripts/scripts/zone/black_temple/boss_warlord_najentus.cpp
r57 r58 217 217 m_creature->SetInFront(m_creature->getVictim()); 218 218 SpineTargetGUID = target->GetGUID(); 219 m_creature->SummonGameObject(GOBJECT_SPINE, target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), m_creature->GetOrientation(), 0, 0, 0, 0, 30); 219 //must let target summon, otherwise you cannot click the spine 220 target->SummonGameObject(GOBJECT_SPINE, target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), m_creature->GetOrientation(), 0, 0, 0, 0, 30); 220 221 221 222 switch(rand()%2) -
trunk/src/game/Object.cpp
r56 r58 1453 1453 return NULL; 1454 1454 go->SetRespawnTime(respawnTime); 1455 go->SetSpawnedByDefault(false); // do not save respawn time 1456 go->SetOwnerGUID(GetGUID()); 1455 if(GetTypeId()==TYPEID_PLAYER || GetTypeId()==TYPEID_UNIT) //not sure how to handle this 1456 ((Unit*)this)->AddGameObject(go); 1457 else 1458 go->SetSpawnedByDefault(false); 1457 1459 map->Add(go); 1458 1460 -
trunk/src/game/Unit.h
r44 r58 1219 1219 void removeFollower(FollowerReference* /*pRef*/ ) { /* nothing to do yet */ } 1220 1220 static Unit* GetUnit(WorldObject& object, uint64 guid); 1221 template<class T> static T* GetObjectInWorld(uint64 guid, T* /*fake*/) 1222 { 1223 return ObjectAccessor::GetObjectInWorld(uint64 guid, T* /*fake*/) 1224 } 1221 1225 1222 1226 MotionMaster* GetMotionMaster() { return &i_motionMaster; }