Implement profession skillgains != 1 (+2, +3)

This commit is contained in:
Yaki Khadafi 2015-02-03 05:36:23 +00:00 committed by Antz
parent 29bbdd40bf
commit d52b124382
3 changed files with 6 additions and 2 deletions

View file

@ -5541,6 +5541,10 @@ bool Player::UpdateCraftSkill(uint32 spellid)
}
uint32 craft_skill_gain = sWorld.getConfig(CONFIG_UINT32_SKILL_GAIN_CRAFTING);
if (!_spell_idx->second->characterPoints)
sLog.outError("Player::UpdateCraftSkill spell %u has characterPoints == 0!");
else
craft_skill_gain += _spell_idx->second->characterPoints - 1;
return UpdateSkillPro(_spell_idx->second->skillId, SkillGainChance(SkillValue,
_spell_idx->second->max_value,