Core/Reputation: Fixed FriendshipReputationFlags::NoRepGainModifiers implementation
Port From (https://github.com/TrinityCore/TrinityCore/commit/b9647bdecc08e63041bbf0d845d5c5b81705e180)
This commit is contained in:
@@ -1425,13 +1425,16 @@ namespace Game.Entities
|
|||||||
|
|
||||||
float percent = 100.0f;
|
float percent = 100.0f;
|
||||||
|
|
||||||
float repMod = noQuestBonus ? 0.0f : GetTotalAuraModifier(AuraType.ModReputationGain);
|
if (!noBonuses)
|
||||||
|
{
|
||||||
|
float repMod = noQuestBonus ? 0.0f : GetTotalAuraModifier(AuraType.ModReputationGain);
|
||||||
|
|
||||||
// faction specific auras only seem to apply to kills
|
// faction specific auras only seem to apply to kills
|
||||||
if (source == ReputationSource.Kill)
|
if (source == ReputationSource.Kill)
|
||||||
repMod += GetTotalAuraModifierByMiscValue(AuraType.ModFactionReputationGain, faction);
|
repMod += GetTotalAuraModifierByMiscValue(AuraType.ModFactionReputationGain, faction);
|
||||||
|
|
||||||
percent += rep > 0 ? repMod : -repMod;
|
percent += rep > 0 ? repMod : -repMod;
|
||||||
|
}
|
||||||
|
|
||||||
float rate;
|
float rate;
|
||||||
switch (source)
|
switch (source)
|
||||||
|
|||||||
Reference in New Issue
Block a user