[Core] Fix stealthing animation for group members. [cz2662]
Previously stealthed party members would go invisible for a brief moment which causes some animation issues. The stealthed players should be visible during transition for other group and raid members.
This commit is contained in:
parent
d3ba1289c3
commit
be5ee32960
@ -6725,20 +6725,7 @@ bool Unit::IsVisibleForOrDetect(Unit const* u, WorldObject const* viewPoint, boo
|
|||||||
// special cases for always overwrite invisibility/stealth
|
// special cases for always overwrite invisibility/stealth
|
||||||
if (invisible || m_Visibility == VISIBILITY_GROUP_STEALTH)
|
if (invisible || m_Visibility == VISIBILITY_GROUP_STEALTH)
|
||||||
{
|
{
|
||||||
// non-hostile case
|
if (u->IsHostileTo(this))
|
||||||
if (!u->IsHostileTo(this))
|
|
||||||
{
|
|
||||||
// player see other player with stealth/invisibility only if he in same group or raid or same team (raid/team case dependent from conf setting)
|
|
||||||
if (GetTypeId() == TYPEID_PLAYER && u->GetTypeId() == TYPEID_PLAYER)
|
|
||||||
{
|
|
||||||
if (((Player*)this)->IsGroupVisibleFor(((Player*)u)))
|
|
||||||
{ return true; }
|
|
||||||
|
|
||||||
// else apply same rules as for hostile case (detecting check for stealth)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// hostile case
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
// Hunter mark functionality
|
// Hunter mark functionality
|
||||||
AuraList const& auras = GetAurasByType(SPELL_AURA_MOD_STALKED);
|
AuraList const& auras = GetAurasByType(SPELL_AURA_MOD_STALKED);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user