mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
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
@@ -110,6 +110,9 @@ api.achievements = achievements;
|
||||
import randomVal from './libs/randomVal';
|
||||
api.randomVal = randomVal;
|
||||
|
||||
import hasClass from './libs/hasClass';
|
||||
api.hasClass = hasClass;
|
||||
|
||||
import autoAllocate from './fns/autoAllocate';
|
||||
import crit from './fns/crit';
|
||||
import handleTwoHanded from './fns/handleTwoHanded';
|
||||
|
||||
Reference in New Issue
Block a user