Show
Ignore:
Timestamp:
11/19/08 13:49:07 (17 years ago)
Author:
yumileroy
Message:

[svn] * Reimplemented packet/update forwarding in more generic way
* Implemented far sight spells (Far Sight, Eagle Eye, etc) at unlimited range and properly forward packets
* Implemented bind vision spells (Mind Vision, etc) to forward packets at unlimited distance
* Implemented Sentry Totem (both vision switching/forwarding and alerting)
* Other misc possession fixes
* Added .bindsight and .unbindsight commands

Please test out the above spells (including Mind Control) and report any issues on the forums.

Original author: gvcoman
Date: 2008-11-14 20:40:35-06:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/game/DynamicObject.cpp

    r120 r233  
    137137void DynamicObject::Delete() 
    138138{ 
     139    // Make sure the object is back to grid container for removal as farsight targets 
     140    // are switched to world container on creation 
     141    GetMap()->SwitchGridContainers(this, false); 
    139142    SendObjectDeSpawnAnim(GetGUID()); 
    140143    AddObjectToRemoveList(); 
     
    151154bool DynamicObject::isVisibleForInState(Player const* u, bool inVisibleList) const 
    152155{ 
    153     return IsInWorld() && u->IsInWorld() && IsWithinDistInMap(u,World::GetMaxVisibleDistanceForObject()+(inVisibleList ? World::GetVisibleObjectGreyDistance() : 0.0f)); 
     156    return IsInWorld() && u->IsInWorld() /*&& IsWithinDistInMap(u,World::GetMaxVisibleDistanceForObject()+(inVisibleList ? World::GetVisibleObjectGreyDistance() : 0.0f))*/; 
    154157}