[12191] Update mastery on mastery aura apply/remove.

Add comment to previous commit.

Signed-off-by: Yaki Khadafi <elsoldollo@gmail.com>
This commit is contained in:
Yaki Khadafi 2012-09-06 10:19:21 +03:00 committed by Antz
parent 8726754f7a
commit 6b87ab329b
5 changed files with 17 additions and 3 deletions

View file

@ -7581,6 +7581,7 @@ SpellCastResult Spell::CanOpenLock(SpellEffectIndex effIndex, uint32 lockId, Ski
reqSkillValue = lockInfo->Skill[j];
// castitem check: rogue using skeleton keys. the skill values should not be added in this case.
// MAX_SKILL_TYPE - skill value scales with caster level
if (skillId == MAX_SKILL_TYPE)
skillValue = m_CastItem || m_caster->GetTypeId() != TYPEID_PLAYER ? 0 : m_caster->getLevel() * 5;
else