Salt spell doesn't check to see if you have enough Gold #4454
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user