diff options
author | megamage <none@none> | 2009-03-25 16:04:08 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-03-25 16:04:08 -0600 |
commit | 02440eaa106834edbf36cedad13a3badc6a09abe (patch) | |
tree | 04d172e04a50fcfd7dc81285855625988161915e /src/game/SpellAuras.cpp | |
parent | 312b8e5b73fc469ec735ddc4ce0507f72805bd19 (diff) |
[7538] Hide some implementation details for reputation/forced faction reaction. Author: VladimirMangos
--HG--
branch : trunk
Diffstat (limited to 'src/game/SpellAuras.cpp')
-rw-r--r-- | src/game/SpellAuras.cpp | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/game/SpellAuras.cpp b/src/game/SpellAuras.cpp index 45e573a2cb8..f939e4bc481 100644 --- a/src/game/SpellAuras.cpp +++ b/src/game/SpellAuras.cpp @@ -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) |