Core/Players: Dueling players in your party / raid should not make them always detectable.

Fixes seeing stealthed rogues & druids, as well as invisible mages in duels.
This commit is contained in:
Warpten
2013-07-14 16:46:11 +02:00
parent bedb2e56e2
commit cd3a7f4175
+3 -3
View File
@@ -22106,10 +22106,10 @@ bool Player::IsAlwaysDetectableFor(WorldObject const* seer) const
if (const Player* seerPlayer = seer->ToPlayer())
if (IsGroupVisibleFor(seerPlayer))
return true;
return !(seerPlayer->duel && seerPlayer->duel->startTime != 0 && seerPlayer->duel->opponent == this);
return false;
}
return false;
}
bool Player::IsVisibleGloballyFor(Player const* u) const
{