From 063a703a85304244bd6027fdf12a511e96fb0800 Mon Sep 17 00:00:00 2001 From: briwa Date: Sun, 22 Feb 2015 19:57:18 +0800 Subject: [PATCH] FIX reset back item effect on server side --- server/server.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index 535baf1..010cd40 100644 --- a/server/server.js +++ b/server/server.js @@ -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;