mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[7538] Hide some implementation details for reputation/forced faction reaction.
This commit is contained in:
parent
3b3144004a
commit
df9caf58cd
10 changed files with 148 additions and 117 deletions
|
|
@ -860,15 +860,7 @@ void WorldSession::HandleSetFactionAtWar( WorldPacket & recv_data )
|
|||
recv_data >> repListID;
|
||||
recv_data >> flag;
|
||||
|
||||
FactionStateList::iterator itr = GetPlayer()->m_factions.find(repListID);
|
||||
if (itr == GetPlayer()->m_factions.end())
|
||||
return;
|
||||
|
||||
// always invisible or hidden faction can't change war state
|
||||
if(itr->second.Flags & (FACTION_FLAG_INVISIBLE_FORCED|FACTION_FLAG_HIDDEN) )
|
||||
return;
|
||||
|
||||
GetPlayer()->SetFactionAtWar(&itr->second,flag);
|
||||
GetPlayer()->SetFactionAtWar(repListID,flag);
|
||||
}
|
||||
|
||||
//I think this function is never used :/ I dunno, but i guess this opcode not exists
|
||||
|
|
@ -876,7 +868,7 @@ void WorldSession::HandleSetFactionCheat( WorldPacket & /*recv_data*/ )
|
|||
{
|
||||
//CHECK_PACKET_SIZE(recv_data,4+4);
|
||||
|
||||
//sLog.outDebug("WORLD SESSION: HandleSetFactionCheat");
|
||||
sLog.outError("WORLD SESSION: HandleSetFactionCheat, not expected call, please report.");
|
||||
/*
|
||||
uint32 FactionID;
|
||||
uint32 Standing;
|
||||
|
|
@ -896,7 +888,7 @@ void WorldSession::HandleSetFactionCheat( WorldPacket & /*recv_data*/ )
|
|||
}
|
||||
}
|
||||
*/
|
||||
GetPlayer()->UpdateReputation();
|
||||
GetPlayer()->SendFactionStates();
|
||||
}
|
||||
|
||||
void WorldSession::HandleMeetingStoneInfo( WorldPacket & /*recv_data*/ )
|
||||
|
|
@ -961,11 +953,7 @@ void WorldSession::HandleSetWatchedFactionInactiveOpcode(WorldPacket & recv_data
|
|||
uint8 inactive;
|
||||
recv_data >> replistid >> inactive;
|
||||
|
||||
FactionStateList::iterator itr = _player->m_factions.find(replistid);
|
||||
if (itr == _player->m_factions.end())
|
||||
return;
|
||||
|
||||
_player->SetFactionInactive(&itr->second, inactive);
|
||||
_player->SetFactionInactive(replistid, inactive);
|
||||
}
|
||||
|
||||
void WorldSession::HandleToggleHelmOpcode( WorldPacket & /*recv_data*/ )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue