[svn] Add Unit::GetObjectInWorld function to get object by guid without providing reference.
Small change in SummonGameObject. Fix a bug that player can not click summoned najentus spine (must let target summon gameobject). --HG-- branch : trunk
This commit is contained in:
@@ -1218,6 +1218,10 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
|
||||
void addFollower(FollowerReference* pRef) { m_FollowingRefManager.insertFirst(pRef); }
|
||||
void removeFollower(FollowerReference* /*pRef*/ ) { /* nothing to do yet */ }
|
||||
static Unit* GetUnit(WorldObject& object, uint64 guid);
|
||||
template<class T> static T* GetObjectInWorld(uint64 guid, T* /*fake*/)
|
||||
{
|
||||
return ObjectAccessor::GetObjectInWorld(uint64 guid, T* /*fake*/)
|
||||
}
|
||||
|
||||
MotionMaster* GetMotionMaster() { return &i_motionMaster; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user