mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-14 18:22:21 +00:00
fix(classes) misc fixes
This commit is contained in:
parent
9d9b8120cd
commit
d2121a8587
3 changed files with 2 additions and 3 deletions
|
|
@ -16,7 +16,6 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$
|
|||
}
|
||||
|
||||
$scope.changeClass = function(klass){
|
||||
if (!$scope.selectedClass) return;
|
||||
if (!klass) {
|
||||
if (!confirm("Are you sure you want to re-roll? This will reset your character's class and allocated points (you'll get them all back to re-allocate)"))
|
||||
return;
|
||||
|
|
|
|||
|
|
@ -225,7 +225,7 @@ api.update = function(req, res, next) {
|
|||
|
||||
api.cron = function(req, res, next) {
|
||||
var user = res.locals.user;
|
||||
shared.cron(user);
|
||||
user.fns.cron();
|
||||
if (user.isModified())
|
||||
res.locals.wasModified = true;
|
||||
user.save(next);
|
||||
|
|
|
|||
|
|
@ -67,4 +67,4 @@
|
|||
.well(ng-show='selectedClass=="healer"') Healers have high defense against damage, and can heal themselves and other players in the party, as well as buff players.
|
||||
|
||||
.modal-footer
|
||||
button.btn.btn-default.cancel(ng-click='changeClass(selectedClass)') Select
|
||||
button.btn.btn-default.cancel(ng-click='selectedClass && changeClass(selectedClass)') Select
|
||||
Loading…
Reference in a new issue