Skip to content

Commit

Permalink
Fix master skills for non-master characters after reset
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-n committed Jul 13, 2024
1 parent c16616f commit 5e61080
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/GameServer/RemoteView/Character/SkillListViewPlugIn.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,10 @@ protected void BuildSkillList()
{
this.SkillList.Clear();
var skills = this._player.SkillList!.Skills.ToList();
if (this._player.SelectedCharacter!.CharacterClass!.IsMasterClass)
{
var replacedSkills = skills.Select(entry => entry.Skill?.MasterDefinition?.ReplacedSkill).Where(skill => skill != null);
skills.RemoveAll(s => replacedSkills.Contains(s.Skill));
skills.RemoveAll(s => s.Skill?.SkillType == SkillType.PassiveBoost);
}

var replacedSkills = skills.Select(entry => entry.Skill?.MasterDefinition?.ReplacedSkill).Where(skill => skill != null);
skills.RemoveAll(s => replacedSkills.Contains(s.Skill));
skills.RemoveAll(s => s.Skill?.SkillType == SkillType.PassiveBoost);

skills.RemoveAll(s => s.Skill?.Number == ForceWaveSkillId);

Expand Down

0 comments on commit 5e61080

Please sign in to comment.