Sfoglia il codice sorgente

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 anni fa
parent
commit
d9a2bdbe05
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;