Core/Players: Only restore spells learned as quest rewards if they have the right AcquireMethod in SkillLineAbility.db2

Port From (https://github.com/TrinityCore/TrinityCore/commit/4acae3992bfecf85d68c0860007f7c538ca45a90)
This commit is contained in:
hondacrx
2020-05-22 14:17:06 -04:00
parent 3b44a21d76
commit 888d281aa7
3 changed files with 15 additions and 41 deletions
+2 -1
View File
@@ -42,7 +42,8 @@ namespace Framework.Constants
public enum AbilityLearnType : byte
{
OnSkillValue = 1, // Spell state will update depending on skill value
OnSkillLearn = 2 // Spell will be learned/removed together with entire skill
OnSkillLearn = 2, // Spell will be learned/removed together with entire skill
RewardedFromQuest = 4 // Learned as quest reward, also re-learned if missing
}
public enum Anim