mirror of
https://github.com/mangosfour/server.git
synced 2025-12-18 01:37:01 +00:00
[7530] Fixed counting exalted reputation achievements work for factions with base reputation != 0.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
16ab4b6849
commit
8fa0ef7ab9
2 changed files with 3 additions and 2 deletions
|
|
@ -758,7 +758,8 @@ void AchievementMgr::UpdateAchievementCriteria(AchievementCriteriaTypes type, ui
|
||||||
const FactionStateList factionStateList = GetPlayer()->GetFactionStateList();
|
const FactionStateList factionStateList = GetPlayer()->GetFactionStateList();
|
||||||
for (FactionStateList::const_iterator iter = factionStateList.begin(); iter!= factionStateList.end(); ++iter)
|
for (FactionStateList::const_iterator iter = factionStateList.begin(); iter!= factionStateList.end(); ++iter)
|
||||||
{
|
{
|
||||||
if(GetPlayer()->ReputationToRank(iter->second.Standing) >= REP_EXALTED)
|
FactionEntry const *factionEntry = sFactionStore.LookupEntry(iter->second.ID);
|
||||||
|
if(GetPlayer()->ReputationToRank(iter->second.Standing + GetPlayer()->GetBaseReputation(factionEntry)) >= REP_EXALTED)
|
||||||
++counter;
|
++counter;
|
||||||
}
|
}
|
||||||
SetCriteriaProgress(achievementCriteria, counter);
|
SetCriteriaProgress(achievementCriteria, counter);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7529"
|
#define REVISION_NR "7530"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue