From 42bc4bdd3d7abe8aad7b9b022c9572b1a964bc89 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Thu, 19 May 2016 09:53:29 -0500 Subject: [PATCH] fix: Correct spelling of healAll skill fix: Correct sprite name of healAll skill --- .../skills/{shop_heallAll.png => shop_healAll.png} | Bin common/script/content/spells.js | 2 +- website/server/controllers/api-v2/user.js | 4 ++++ 3 files changed, 5 insertions(+), 1 deletion(-) rename common/img/sprites/spritesmith/skills/{shop_heallAll.png => shop_healAll.png} (100%) diff --git a/common/img/sprites/spritesmith/skills/shop_heallAll.png b/common/img/sprites/spritesmith/skills/shop_healAll.png similarity index 100% rename from common/img/sprites/spritesmith/skills/shop_heallAll.png rename to common/img/sprites/spritesmith/skills/shop_healAll.png diff --git a/common/script/content/spells.js b/common/script/content/spells.js index a4632dbea4..9309210af7 100644 --- a/common/script/content/spells.js +++ b/common/script/content/spells.js @@ -239,7 +239,7 @@ spells.healer = { }); }, }, - heallAll: { // Blessing + healAll: { // Blessing text: t('spellHealerHealAllText'), mana: 25, lvl: 14, diff --git a/website/server/controllers/api-v2/user.js b/website/server/controllers/api-v2/user.js index 323155a5bd..b64f8e755a 100644 --- a/website/server/controllers/api-v2/user.js +++ b/website/server/controllers/api-v2/user.js @@ -635,6 +635,10 @@ api.cast = async function(req, res, next) { let spellId = req.params.spell; let targetId = req.query.targetId; + if (spellId === 'heallAll') { + spellId = 'healAll'; + } + let klass = shared.content.spells.special[spellId] ? 'special' : user.stats.class; let spell = shared.content.spells[klass][spellId];