diff --git a/public/js/controllers/rootCtrl.js b/public/js/controllers/rootCtrl.js index 5065a93eb2..66b1e359a1 100644 --- a/public/js/controllers/rootCtrl.js +++ b/public/js/controllers/rootCtrl.js @@ -195,7 +195,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$ $scope.castStart = function(spell) { if (User.user.stats.mp < spell.mana) return Notification.text(window.env.t('notEnoughMana')); - if (spell.key == 'nye' && User.user.stats.gp < spell.value) + if ((spell.key == 'nye' || spell.key == 'salt') && User.user.stats.gp < spell.value) return Notification.text('Not enough gold.'); $rootScope.applyingAction = true;