AAEmu/AAEmu

[BUG] [Passive Skills] Points check and calculation is wrong

Closed this issue · 0 comments

I confirm that:

  • I understand that if I do not agree to the following points by marking the checkboxes my issue will be ignored.
  • I have searched existing issues to see if the issue has already been opened, and I have checked the commit log to see if the issue has been resolved since my server was last updated.
  • I am currently on the latest commit of the branch when reporting this bug

Code branch that is affected by this issue

develop

Bug description

The code is taking ReqPoints as the "cost" for the passive skill, rather than the normal 1 point and checking if ReqPoints has been met by learned skills in the same skill tree.

Steps to reproduce

Have 1 unused skill point, and try to learn a passive skill in the same tree (or others for that matter)

Expected behavior

Learn the passive skill if at least 1 skill point remains

Screenshots
n/a

Any additional context for this bug
Related code is in CharacterSkills.AddBuff and it's helper functions