From 0f70e9a79c25693812af9e548d83b0e0c9c3753a Mon Sep 17 00:00:00 2001 From: PSZ Date: Wed, 19 Jan 2011 17:09:28 +0100 Subject: [PATCH] [11043] Add additional check for spell 53475, 53487 and 54015 Only reset when current rep is less than the reset value. Signed-off-by: NoFantasy --- src/game/SpellEffects.cpp | 6 ++++-- src/shared/revision_nr.h | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/game/SpellEffects.cpp b/src/game/SpellEffects.cpp index 2b3c7bf60..3e28d4532 100644 --- a/src/game/SpellEffects.cpp +++ b/src/game/SpellEffects.cpp @@ -1874,8 +1874,10 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx) if (!factionEntry) return; - // set rep to baserep + basepoints (expecting spillover for oposite faction -> become hated) - pPlayer->GetReputationMgr().SetReputation(factionEntry, rep_change); + // Set rep to baserep + basepoints (expecting spillover for oposite faction -> become hated) + // Not when player already has equal or higher rep with this faction + if (pPlayer->GetReputationMgr().GetBaseReputation(factionEntry) < rep_change) + pPlayer->GetReputationMgr().SetReputation(factionEntry, rep_change); // EFFECT_INDEX_2 most likely update at war state, we already handle this in SetReputation } diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 7657c5935..da830d29f 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11042" + #define REVISION_NR "11043" #endif // __REVISION_NR_H__