From dfa25c6f3a555d19610ac376940f111ff4dba2a6 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Sat, 28 Dec 2013 22:01:44 -0700 Subject: [PATCH] fix https://github.com/HabitRPG/habitrpg/issues/2156 stack stealth --- dist/habitrpg-shared.js | 2 +- script/content.coffee | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/habitrpg-shared.js b/dist/habitrpg-shared.js index 2fc0d1e0b6..43f8253179 100644 --- a/dist/habitrpg-shared.js +++ b/dist/habitrpg-shared.js @@ -10177,7 +10177,7 @@ var global=self;/** if ((_base = user.stats.buffs).stealth == null) { _base.stealth = 0; } - return user.stats.buffs.stealth = Math.ceil(user._statsComputed.per * .03); + return user.stats.buffs.stealth += Math.ceil(user._statsComputed.per * .03); } } }, diff --git a/script/content.coffee b/script/content.coffee index a23c84cd30..2892e3cae2 100644 --- a/script/content.coffee +++ b/script/content.coffee @@ -337,7 +337,7 @@ api.spells = notes: "You duck into the shadows, pulling up your hood. Many dailies won't find you this night; fewer yet the higher your Perception." cast: (user, target) -> user.stats.buffs.stealth ?= 0 - user.stats.buffs.stealth = Math.ceil(user._statsComputed.per * .03) + user.stats.buffs.stealth += Math.ceil(user._statsComputed.per * .03) healer: heal: