Salt spell doesn't check to see if you have enough Gold #4454

This commit is contained in:
Melissa Mcewen
2014-12-31 19:29:08 -06:00
parent 5f179baf60
commit 37a6091638
+1 -1
View File
@@ -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;