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:
@@ -11686,6 +11686,17 @@ namespace Game
|
||||
{
|
||||
public uint Id;
|
||||
public uint[] Value = new uint[SkillConst.MaxSkillStep];
|
||||
|
||||
public uint GetValueForTierIndex(int tierIndex)
|
||||
{
|
||||
if (tierIndex >= SkillConst.MaxSkillStep)
|
||||
tierIndex = (int)SkillConst.MaxSkillStep - 1;
|
||||
|
||||
while (Value[tierIndex] == 0 && tierIndex > 0)
|
||||
--tierIndex;
|
||||
|
||||
return Value[tierIndex];
|
||||
}
|
||||
}
|
||||
|
||||
public class TerrainSwapInfo
|
||||
|
||||
Reference in New Issue
Block a user