mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 19:37:02 +00:00
[8867] Implement expected combat stop with friendly faction
In case force reaction apply/remove.
This commit is contained in:
parent
670a2dbb4c
commit
e6efe02020
6 changed files with 69 additions and 3 deletions
|
|
@ -3242,10 +3242,14 @@ void Aura::HandleForceReaction(bool apply, bool Real)
|
|||
Player* player = (Player*)m_target;
|
||||
|
||||
uint32 faction_id = m_modifier.m_miscvalue;
|
||||
uint32 faction_rank = m_modifier.m_amount;
|
||||
ReputationRank faction_rank = ReputationRank(m_modifier.m_amount);
|
||||
|
||||
player->GetReputationMgr().ApplyForceReaction(faction_id, ReputationRank(faction_rank), apply);
|
||||
player->GetReputationMgr().ApplyForceReaction(faction_id, faction_rank, apply);
|
||||
player->GetReputationMgr().SendForceReactions();
|
||||
|
||||
// stop fighting if at apply forced rank friendly or at remove real rank friendly
|
||||
if (apply && faction_rank >= REP_FRIENDLY || !apply && player->GetReputationRank(faction_id) >= REP_FRIENDLY)
|
||||
player->StopAttackFaction(faction_id);
|
||||
}
|
||||
|
||||
void Aura::HandleAuraModSkill(bool apply, bool /*Real*/)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue