Skip to content

Commit

Permalink
FIX reset back item effect on server side
Browse files Browse the repository at this point in the history
  • Loading branch information
briwa committed Feb 22, 2015
1 parent 9c1ed4d commit 063a703
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,15 @@ Meteor.methods({
attr : {
type : effect_type
}
})
});

props[effect_type] = props['max_'+effect_type];

PlayerData.update({
user_id : affected_player.user_id,
}, {
$set : props
});
}, 10000);
}
break;
Expand Down

0 comments on commit 063a703

Please sign in to comment.