Changeset 233 for trunk/src/game/SpellAuras.cpp
- Timestamp:
- 11/19/08 13:49:07 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/SpellAuras.cpp
r229 r233 1965 1965 else 1966 1966 { 1967 if( m_target->GetTypeId() == TYPEID_PLAYER && 1968 ( GetSpellProto()->Effect[0]==72 || GetSpellProto()->Effect[0]==6 && 1969 ( GetSpellProto()->EffectApplyAuraName[0]==1 || GetSpellProto()->EffectApplyAuraName[0]==128 ) ) ) 1967 if( m_target->GetTypeId() == TYPEID_PLAYER && GetSpellProto()->Effect[0]==72 ) 1970 1968 { 1971 1969 // spells with SpellEffect=72 and aura=4: 6196, 6197, 21171, 21425 1972 m_target->SetUInt64Value(PLAYER_FARSIGHT, 0); 1973 WorldPacket data(SMSG_CLEAR_FAR_SIGHT_IMMEDIATE, 0); 1974 ((Player*)m_target)->GetSession()->SendPacket(&data); 1970 ((Player*)m_target)->ClearFarsight(); 1975 1971 return; 1976 1972 } … … 2228 2224 2229 2225 ((Player*)m_target)->AddSpellMod(m_spellmod, apply); 2226 return; 2227 } 2228 2229 // Sentry Totem 2230 if (GetId() == 6495 && caster->GetTypeId() == TYPEID_PLAYER) 2231 { 2232 if (apply) 2233 { 2234 uint64 guid = caster->m_TotemSlot[3]; 2235 if (guid) 2236 { 2237 Creature *totem = ObjectAccessor::GetCreature(*caster, guid); 2238 if (totem && totem->isTotem()) 2239 totem->AddPlayerToVision((Player*)caster); 2240 } 2241 } 2242 else 2243 ((Player*)caster)->RemoveFarsightTarget(); 2230 2244 return; 2231 2245 } … … 2831 2845 return; 2832 2846 2833 caster->SetUInt64Value(PLAYER_FARSIGHT,apply ? m_target->GetGUID() : 0); 2847 if (apply) 2848 m_target->AddPlayerToVision((Player*)caster); 2849 else 2850 m_target->RemovePlayerFromVision((Player*)caster); 2834 2851 } 2835 2852