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/TotemAI.cpp

    r102 r233  
    123123TotemAI::AttackStart(Unit *) 
    124124{ 
     125    // Sentry totem sends ping on attack 
     126    if (i_totem.GetEntry() == SENTRY_TOTEM_ENTRY && i_totem.GetOwner()->GetTypeId() == TYPEID_PLAYER) 
     127    { 
     128        WorldPacket data(MSG_MINIMAP_PING, (8+4+4)); 
     129        data << i_totem.GetGUID(); 
     130        data << i_totem.GetPositionX(); 
     131        data << i_totem.GetPositionY(); 
     132        ((Player*)i_totem.GetOwner())->GetSession()->SendPacket(&data); 
     133    } 
    125134}