mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 10:37:02 +00:00
[7694] Fixed achievement criteria set at loading.
Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
1b09aab42b
commit
c88f2164fc
2 changed files with 3 additions and 3 deletions
|
|
@ -814,10 +814,10 @@ void AchievementMgr::UpdateAchievementCriteria(AchievementCriteriaTypes type, ui
|
||||||
SetCriteriaProgress(achievementCriteria, 1, PROGRESS_ACCUMULATE);
|
SetCriteriaProgress(achievementCriteria, 1, PROGRESS_ACCUMULATE);
|
||||||
break;
|
break;
|
||||||
case ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL:
|
case ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL:
|
||||||
// spell always provide and at login spell learning.
|
|
||||||
if(miscvalue1 && miscvalue1!=achievementCriteria->learn_spell.spellID)
|
if(miscvalue1 && miscvalue1!=achievementCriteria->learn_spell.spellID)
|
||||||
continue;
|
continue;
|
||||||
if(GetPlayer()->HasSpell(miscvalue1))
|
|
||||||
|
if(GetPlayer()->HasSpell(achievementCriteria->learn_spell.spellID))
|
||||||
SetCriteriaProgress(achievementCriteria, 1);
|
SetCriteriaProgress(achievementCriteria, 1);
|
||||||
break;
|
break;
|
||||||
case ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM:
|
case ACHIEVEMENT_CRITERIA_TYPE_OWN_ITEM:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "7693"
|
#define REVISION_NR "7694"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue