mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 17:54:48 +01:00
Core/Net: Define and semi-implement SMSG_SET_FACTION_NOT_VISIBILE
This commit is contained in:
@@ -239,13 +239,13 @@ void ReputationMgr::SendStates()
|
||||
SendState(&(itr->second));
|
||||
}
|
||||
|
||||
void ReputationMgr::SendVisible(FactionState const* faction) const
|
||||
void ReputationMgr::SendVisible(FactionState const* faction, bool visible /* = true*/) const
|
||||
{
|
||||
if (_player->GetSession()->PlayerLoading())
|
||||
return;
|
||||
|
||||
// make faction visible in reputation list at client
|
||||
WorldPacket data(SMSG_SET_FACTION_VISIBLE, 4);
|
||||
WorldPacket data(visible ? SMSG_SET_FACTION_VISIBLE : SMSG_SET_FACTION_NOT_VISIBILE, 4);
|
||||
data << faction->ReputationListID;
|
||||
_player->SendDirectMessage(&data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user