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:
hondacrx
2023-04-25 08:53:52 -04:00
parent c186c76103
commit 9d955f42aa
2 changed files with 86 additions and 1 deletions
+4
View File
@@ -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)
{