浏览代码

Fixed bugreport:5808 GN Cart Boost is now removed when user takes off his cart

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@16339 54d463be-8e91-2dee-dedb-b68131a5f0ec
shennetsind 13 年之前
父节点
当前提交
b7d3e0665f
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/map/pc.c

+ 3 - 0
src/map/pc.c

@@ -7223,6 +7223,9 @@ int pc_setcart(struct map_session_data *sd,int type) {
 	if( pc_checkskill(sd,MC_PUSHCART) <= 0 )
 		return 1;// Push cart is required
 
+	if( type == 0 && pc_iscarton(sd) )
+		status_change_end(&sd->bl,SC_GN_CARTBOOST,INVALID_TIMER);
+	
 #ifdef NEW_CARTS
 	
 	switch( type ) {