[7538] Hide some implementation details for reputation/forced faction reaction. Author: VladimirMangos
--HG-- branch : trunk
This commit is contained in:
1 parent
312b8e5b73
commit
02440eaa10
9 files changed
+147
-116
No files matched your search
+2
-14
@@ -2933,20 +2933,8 @@ void Aura::HandleForceReaction(bool apply, bool Real)
|
||||
uint32 faction_id = m_modifier.m_miscvalue;
|
||||
uint32 faction_rank = m_modifier.m_amount;
|
||||
|
||||
if(apply)
|
||||
player->m_forcedReactions[faction_id] = ReputationRank(faction_rank);
|
||||
else
|
||||
player->m_forcedReactions.erase(faction_id);
|
||||
|
||||
WorldPacket data;
|
||||
data.Initialize(SMSG_SET_FORCED_REACTIONS, 4+player->m_forcedReactions.size()*(4+4));
|
||||
data << uint32(player->m_forcedReactions.size());
|
||||
for(ForcedReactions::const_iterator itr = player->m_forcedReactions.begin(); itr != player->m_forcedReactions.end(); ++itr)
|
||||
{
|
||||
data << uint32(itr->first); // faction_id (Faction.dbc)
|
||||
data << uint32(itr->second); // reputation rank
|
||||
}
|
||||
player->SendDirectMessage(&data);
|
||||
player->ApplyForceReaction(faction_id,ReputationRank(faction_rank),apply);
|
||||
player->SendForceReactions();
|
||||
}
|
||||
|
||||
void Aura::HandleAuraModSkill(bool apply, bool Real)
|
||||
|
||||
Reference in new issue
Block a user