Explorar el Código

Unwanted auto attacks (fixes #1127)
* Players will no longer do auto-attacks unless you keep the mouse clicked or use "Ctrl+Click"
* When the client sends a packet to stop auto-attack, it will now be properly stopped

Playtester hace 9 años
padre
commit
c14758f932
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      src/map/clif.c

+ 1 - 0
src/map/clif.c

@@ -11604,6 +11604,7 @@ void clif_parse_TradeCommit(int fd,struct map_session_data *sd)
 void clif_parse_StopAttack(int fd,struct map_session_data *sd)
 {
 	pc_stop_attack(sd);
+	if (sd) sd->ud.state.attack_continue = 0;
 }