From 37a60916381c0dda0a882e1faa2db6f3feaaea08 Mon Sep 17 00:00:00 2001 From: Melissa Mcewen Date: Wed, 31 Dec 2014 19:29:08 -0600 Subject: [PATCH] Salt spell doesn't check to see if you have enough Gold #4454 --- public/js/controllers/rootCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;