mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-12 04:59:01 +01:00
Core/BGs: Reputation gained in BGs should be affected by SPELL_AURA_MOD_REPUTATION_GAIN
An example would be Diplomacy (Racial Passive)
This commit is contained in:
@@ -686,6 +686,7 @@ void Battleground::RewardReputationToTeam(uint32 faction_id, uint32 Reputation,
|
||||
continue;
|
||||
|
||||
uint32 repGain = Reputation;
|
||||
AddPct(repGain, player->GetTotalAuraModifier(SPELL_AURA_MOD_REPUTATION_GAIN));
|
||||
AddPct(repGain, player->GetTotalAuraModifierByMiscValue(SPELL_AURA_MOD_FACTION_REPUTATION_GAIN, faction_id));
|
||||
player->GetReputationMgr().ModifyReputation(factionEntry, repGain);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user