Added hack that was removed in [7443]

Closes issue #979

--HG--
branch : trunk
This commit is contained in:
silverice
2010-03-17 21:34:42 +02:00
parent 48d7ae707d
commit 4177b876f3
+4
View File
@@ -11721,6 +11721,10 @@ bool Unit::canDetectStealthOf(Unit const* target, float distance) const
void Unit::SetVisibility(UnitVisibility x)
{
m_Visibility = x;
if (m_Visibility == VISIBILITY_GROUP_STEALTH)
DestroyForNearbyPlayers();
UpdateObjectVisibility();
}