diff options
author | megamage <none@none> | 2009-03-10 15:26:17 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-10 15:26:17 -0600 |
commit | 167ca565d044915f01ead4b189754ab1c44cc981 (patch) | |
tree | 84fce28796ad726f1a0d629444741c7ff8ffb4cf /src/game/MiscHandler.cpp | |
parent | fec6be8a7428cdf3328f0480f6b85a56f283b79d (diff) |
*Update bind sight spells code.
--HG--
branch : trunk
Diffstat (limited to 'src/game/MiscHandler.cpp')
-rw-r--r-- | src/game/MiscHandler.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/game/MiscHandler.cpp b/src/game/MiscHandler.cpp index d176c19baf7..93659bd6e0a 100644 --- a/src/game/MiscHandler.cpp +++ b/src/game/MiscHandler.cpp @@ -1433,21 +1433,15 @@ void WorldSession::HandleFarSightOpcode( WorldPacket & recv_data ) uint8 apply; recv_data >> apply; - CellPair pair; switch(apply) { case 0: - _player->SetFarsightVision(false); - pair = Trinity::ComputeCellPair(_player->GetPositionX(), _player->GetPositionY()); - sLog.outDebug("Player %u set vision to himself", _player->GetGUIDLow()); + _player->SetSeer(_player); + sLog.outDebug("Player %u set vision to self", _player->GetGUIDLow()); break; case 1: - _player->SetFarsightVision(true); - if (WorldObject* obj = _player->GetFarsightTarget()) - pair = Trinity::ComputeCellPair(obj->GetPositionX(), obj->GetPositionY()); - else - return; + _player->SetSeer(_player->GetFarsightTarget()); sLog.outDebug("Added FarSight " I64FMT " to player %u", _player->GetFarSightGUID(), _player->GetGUIDLow()); break; default: |