Core/Visibility: Pets should be always visible for group mates.

Patch by zarocks
Closes #55
This commit is contained in:
Subv
2012-04-07 13:30:33 -05:00
parent 3d83f663f6
commit e94a5dd16f

View File

@@ -12506,6 +12506,12 @@ bool Unit::IsAlwaysVisibleFor(WorldObject const* seer) const
if (seer->GetGUID() == guid)
return true;
if (Player const* seerPlayer = seer->ToPlayer())
if (Unit* owner = GetOwner())
if (Player* ownerPlayer = owner->ToPlayer())
if (ownerPlayer->IsGroupVisibleFor(seerPlayer))
return true;
return false;
}