71c0939a15
* 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
12 lines
275 B
JavaScript
12 lines
275 B
JavaScript
import memberHasClass from 'common/script/libs/hasClass';
|
|
|
|
export function isBuffed () {
|
|
return (member) => {
|
|
const buffs = member.stats.buffs;
|
|
return buffs.str || buffs.per || buffs.con || buffs.int;
|
|
};
|
|
}
|
|
|
|
export function hasClass () {
|
|
return memberHasClass;
|
|
} |