Explorar o código

No points for autotraders!

Lemongrass3110 %!s(int64=2) %!d(string=hai) anos
pai
achega
0e4bc36d6b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/map/pc.cpp

+ 1 - 1
src/map/pc.cpp

@@ -10356,7 +10356,7 @@ bool pc_setparam(struct map_session_data *sd,int64 type,int64 val_tmp)
 		}
 		}
 
 
 		// If the system is enabled and the player can still earn some points restart the timer
 		// If the system is enabled and the player can still earn some points restart the timer
-		if( battle_config.feature_goldpc_active && val < battle_config.feature_goldpc_max_points ){
+		if( battle_config.feature_goldpc_active && val < battle_config.feature_goldpc_max_points && !sd->state.autotrade ){
 			sd->goldpc_tid = add_timer( gettick() + battle_config.feature_goldpc_time * 1000, pc_goldpc_update, sd->bl.id, (intptr_t)nullptr );
 			sd->goldpc_tid = add_timer( gettick() + battle_config.feature_goldpc_time * 1000, pc_goldpc_update, sd->bl.id, (intptr_t)nullptr );
 		}
 		}