From a7100b6606a25e8579d0993f1df0793de369a3a9 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Mon, 16 Dec 2013 00:18:50 -0700 Subject: [PATCH] classes: cast URL fix --- 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 c73438c440..30e350a148 100644 --- a/public/js/controllers/rootCtrl.js +++ b/public/js/controllers/rootCtrl.js @@ -158,7 +158,7 @@ habitrpg.controller("RootCtrl", ['$scope', '$rootScope', '$location', 'User', '$ $scope.castEnd = function(target, type, $event){ if ($scope.spell.target != type) return Notification.text("Invalid target"); $scope.spell.cast(User.user, target); - $http.post('/api/v2/user/cast/' + $scope.spell.name, {target:target, type:type}).success(function(){ + $http.post('/api/v2/user/class/cast/' + $scope.spell.name, {target:target, type:type}).success(function(){ var msg = "You cast " + $scope.spell.text; switch (type) { case 'task': msg += ' on ' + target.text;break;