Browse Source

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 năm trước cách đây
mục cha
commit
c14758f932
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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;
 }