Core/Players: Learn parent skilllines if they are missing while learning child skills
Port From (https://github.com/TrinityCore/TrinityCore/commit/9022f2374884b966c3ecf7199c52498140775668)
This commit is contained in:
@@ -1962,7 +1962,7 @@ namespace Game.Spells
|
||||
return;
|
||||
|
||||
ushort skillval = Math.Max((ushort)1, playerTarget.GetPureSkillValue(skillid));
|
||||
ushort maxSkillVal = (ushort)tier.Value[damage - 1];
|
||||
ushort maxSkillVal = (ushort)tier.GetValueForTierIndex(damage - 1);
|
||||
|
||||
if (rcEntry.Flags.HasAnyFlag(SkillRaceClassInfoFlags.AlwaysMaxValue))
|
||||
skillval = maxSkillVal;
|
||||
@@ -4297,7 +4297,7 @@ namespace Game.Spells
|
||||
return;
|
||||
|
||||
ushort skillval = Math.Max((ushort)1, playerTarget.GetPureSkillValue(skillid));
|
||||
ushort maxSkillVal = (ushort)tier.Value[damage - 1];
|
||||
ushort maxSkillVal = (ushort)tier.GetValueForTierIndex(damage - 1);
|
||||
|
||||
if (rcEntry.Flags.HasAnyFlag(SkillRaceClassInfoFlags.AlwaysMaxValue))
|
||||
skillval = maxSkillVal;
|
||||
|
||||
Reference in New Issue
Block a user