mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 10:30:27 +00:00
fix(Core/Reputations): Faction rep gained by killing mobs is now prop… (#9737)
* fix(Core/Reputations): Faction rep gained by killing mobs is now properly rounded up. Do not increase reputation rank if exceeds max rank cap. Fixes #8718
This commit is contained in:
@@ -4879,7 +4879,7 @@ void Spell::EffectReputation(SpellEffIndex effIndex)
|
||||
return;
|
||||
}
|
||||
|
||||
int32 repChange = damage;
|
||||
float repChange = static_cast<float>(damage);
|
||||
|
||||
uint32 factionId = m_spellInfo->Effects[effIndex].MiscValue;
|
||||
|
||||
@@ -4888,7 +4888,6 @@ void Spell::EffectReputation(SpellEffIndex effIndex)
|
||||
return;
|
||||
|
||||
repChange = player->CalculateReputationGain(REPUTATION_SOURCE_SPELL, 0, repChange, factionId);
|
||||
|
||||
player->GetReputationMgr().ModifyReputation(factionEntry, repChange);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user