瀏覽代碼

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;
 }