Core/Skinning: Autolearn skill of skinned mob if not already learned
Port From (https://github.com/TrinityCore/TrinityCore/commit/74c280da9eac16c5d4a875ff2ea5aa30034ff1dd)
This commit is contained in:
@@ -3450,6 +3450,10 @@ namespace Game.Spells
|
||||
loot.FillLoot(creature.GetCreatureTemplate().SkinLootId, LootStorage.Skinning, player, true);
|
||||
player.SendLoot(loot);
|
||||
|
||||
if (!Global.SpellMgr.IsPartOfSkillLine(skill, m_spellInfo.Id))
|
||||
return;
|
||||
|
||||
// Skill gain for skinning
|
||||
// This formula is still used (10.0.5.48526)
|
||||
if (skill == SkillType.Skinning)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user