diff options
| author | panaut0lordv <panaut0lordv@gmail.com> | 2009-03-10 23:10:08 +0100 |
|---|---|---|
| committer | panaut0lordv <panaut0lordv@gmail.com> | 2009-03-10 23:10:08 +0100 |
| commit | 6e38f12f3e96de6027363c098c139a1bdaf316e6 (patch) | |
| tree | bb7751b0e171df4e17282347a01450665d9ae69a /src/game/SpellAuras.cpp | |
| parent | 95ce2042db289db68bc74e6e5b0b2b558ea521e5 (diff) | |
| parent | dc4a456416870697d1bf727ab5c7b9f6cf3537f0 (diff) | |
Merge.
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
| -rw-r--r-- | src/game/SpellAuras.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index fb0a943bc3d..0f93e915adb 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -1918,7 +1918,7 @@ void Aura::HandleAuraDummy(bool apply, bool Real) if( m_target->GetTypeId() == TYPEID_PLAYER && GetSpellProto()->Effect[0]==72 ) { // spells with SpellEffect=72 and aura=4: 6196, 6197, 21171, 21425 - ((Player*)m_target)->ClearFarsight(); + ((Player*)m_target)->SetSeer(m_target); return; } @@ -2819,19 +2819,17 @@ void Aura::HandleBindSight(bool apply, bool Real) if(!caster || caster->GetTypeId() != TYPEID_PLAYER) return; - if(apply) - m_target->AddPlayerToVision((Player*)caster); - else - m_target->RemovePlayerFromVision((Player*)caster); + ((Player*)caster)->SetSeer(apply ? m_target : caster); } void Aura::HandleFarSight(bool apply, bool Real) { - Unit* caster = GetCaster(); + //Handled by client + /*Unit* caster = GetCaster(); if(!caster || caster->GetTypeId() != TYPEID_PLAYER) return; - ((Player*)caster)->SetFarSightGUID(apply ? m_target->GetGUID() : 0); + ((Player*)caster)->SetFarSightGUID(apply ? m_target->GetGUID() : 0);*/ } void Aura::HandleAuraTrackCreatures(bool apply, bool Real) |
