Implemented ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL

Fixed typo in my previous commit
This commit is contained in:
arrai 2008-10-31 20:34:53 +01:00
parent 4baf956853
commit be03894ec5
2 changed files with 10 additions and 1 deletions

View file

@ -2773,6 +2773,9 @@ bool Player::addSpell(uint32 spell_id, bool active, bool learning, bool loading,
}
}
if(!loading)
GetAchievementMgr().UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_LEARN_SPELL);
// return true (for send learn packet) only if spell active (in case ranked spells) and not replace old spell
return active && !disabled && !superceded_old;
}