mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 16:38:42 +01:00
Fix possible issue where player could inherit stealth visibility from his/her pet.
--HG-- branch : trunk
This commit is contained in:
@@ -14192,7 +14192,7 @@ void Unit::SetContestedPvP(Player *attackedPlayer)
|
||||
player->addUnitState(UNIT_STAT_ATTACK_PLAYER);
|
||||
player->SetFlag(PLAYER_FLAGS, PLAYER_FLAGS_CONTESTED_PVP);
|
||||
// call MoveInLineOfSight for nearby contested guards
|
||||
player->SetVisibility(GetVisibility());
|
||||
player->SetVisibility(player->GetVisibility());
|
||||
}
|
||||
if (!hasUnitState(UNIT_STAT_ATTACK_PLAYER))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user