浏览代码

Changed atcommand follow behavior
* Fixes #2424.
* Atcommand follow will now continue to follow the target even if the target dies.
Thanks to @MrAntares!

aleos 7 年之前
父节点
当前提交
d9a2bdbe05
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/map/pc.c

+ 1 - 1
src/map/pc.c

@@ -6410,7 +6410,7 @@ int pc_follow_timer(int tid, unsigned int tick, int id, intptr_t data)
 	sd->followtimer = INVALID_TIMER;
 	tbl = map_id2bl(sd->followtarget);
 
-	if (tbl == NULL || pc_isdead(sd) || status_isdead(tbl))
+	if (tbl == NULL || pc_isdead(sd))
 	{
 		pc_stop_following(sd);
 		return 0;