mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 22: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)
|
if (!factionEntry)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// set rep to baserep + basepoints (expecting spillover for oposite faction -> become hated)
|
// Set rep to baserep + basepoints (expecting spillover for oposite faction -> become hated)
|
||||||
pPlayer->GetReputationMgr().SetReputation(factionEntry, rep_change);
|
// 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
|
// EFFECT_INDEX_2 most likely update at war state, we already handle this in SetReputation
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11042"
|
#define REVISION_NR "11043"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue