mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[11140] Properly reward faction related titles to player when achievement has been completed
Signed-off-by: Ambal <pogrebniak@gala.net>
This commit is contained in:
parent
cf685da47a
commit
2bb00743e5
2 changed files with 2 additions and 2 deletions
|
|
@ -2086,7 +2086,7 @@ void AchievementMgr::CompletedAchievement(AchievementEntry const* achievement)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// titles
|
// titles
|
||||||
if(uint32 titleId = reward->titleId[GetPlayer()->GetTeam() == HORDE ? 0 : 1])
|
if(uint32 titleId = reward->titleId[GetPlayer()->GetTeam() == HORDE ? 1 : 0])
|
||||||
{
|
{
|
||||||
if(CharTitlesEntry const* titleEntry = sCharTitlesStore.LookupEntry(titleId))
|
if(CharTitlesEntry const* titleEntry = sCharTitlesStore.LookupEntry(titleId))
|
||||||
GetPlayer()->SetTitle(titleEntry);
|
GetPlayer()->SetTitle(titleEntry);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "11139"
|
#define REVISION_NR "11140"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue