mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[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 <nofantasy@nf.no>
This commit is contained in:
parent
6f2804d513
commit
0f70e9a79c
2 changed files with 5 additions and 3 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#ifndef __REVISION_NR_H__
|
||||
#define __REVISION_NR_H__
|
||||
#define REVISION_NR "11042"
|
||||
#define REVISION_NR "11043"
|
||||
#endif // __REVISION_NR_H__
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue