fix for countPets, working when originalCount is 0

This commit is contained in:
Matteo Pagliazzi
2013-11-20 21:37:40 +01:00
parent ec1681fce4
commit 7e437e405d
+1 -1
View File
@@ -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"]