aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-03-22 11:37:59 -0600
committermegamage <none@none>2009-03-22 11:37:59 -0600
commit708449298efbf50783c6cf09fbea22196c7bd315 (patch)
treeefa8d7b730a697710101f2d10708df2686ae7eb5 /src/game/Player.cpp
parentae7a8a09718115b291d18929c098c5082ee0fda8 (diff)
parent763c81de3cb3e144276f850ffa12265bf92d0d03 (diff)
*Merge.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index 050ae12b818..28080c58b6d 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -18690,7 +18690,7 @@ void Player::UpdateVisibilityOf(T* target, UpdateData& data, std::set<WorldObjec
#endif
}
}
- else
+ else if(visibleNow.size() < 30)
{
if(target->isVisibleForInState(this,false))
{
@@ -20073,7 +20073,11 @@ void Player::StopCastingBindSight()
if(WorldObject* target = GetViewpoint())
{
if(target->isType(TYPEMASK_UNIT))
+ {
((Unit*)target)->RemoveAuraTypeByCaster(SPELL_AURA_BIND_SIGHT, GetGUID());
+ ((Unit*)target)->RemoveAuraTypeByCaster(SPELL_AURA_MOD_POSSESS, GetGUID());
+ ((Unit*)target)->RemoveAuraTypeByCaster(SPELL_AURA_MOD_POSSESS_PET, GetGUID());
+ }
}
}