Fix API early Stat Point allocation (#10680)
* Refactor hasClass check to common so it can be used in shared & server-side code * Check that user has selected class before allocating stat points
This commit is contained in:
committed by
Matteo Pagliazzi
parent
26c8323e70
commit
71c0939a15
@@ -0,0 +1,8 @@
|
||||
// Check if user has Class system enabled
|
||||
module.exports = function hasClass (member) {
|
||||
return (
|
||||
member.stats.lvl >= 10 &&
|
||||
!member.preferences.disableClasses &&
|
||||
member.flags.classSelected
|
||||
);
|
||||
};
|
||||
Reference in New Issue
Block a user