Переглянути джерело

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 9 роки тому
батько
коміт
c14758f932
1 змінених файлів з 1 додано та 0 видалено
  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;
 }