From 7e437e405d5a8b19096ac48c231999435101b7da Mon Sep 17 00:00:00 2001 From: Matteo Pagliazzi Date: Wed, 20 Nov 2013 21:37:40 +0100 Subject: [PATCH] fix for countPets, working when originalCount is 0 --- script/helpers.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/helpers.coffee b/script/helpers.coffee index 15534f6193..cb1d2083ea 100644 --- a/script/helpers.coffee +++ b/script/helpers.coffee @@ -352,7 +352,7 @@ module.exports = if type is 'weapon' then i.strength else i.defense countPets: (originalCount, pets) -> - count = originalCount or _.size(pets); + count = if originalCount? then originalCount else _.size(pets) count-- if pets["Wolf-Veteran"] count-- if pets["Wolf-Cerberus"] count-- if pets["Dragon-Hydra"]