Преглед на файлове

Fixed slave monsters not teleporting with their master (#5150)

Daegaladh преди 4 години
родител
ревизия
005a2c4f48
променени са 1 файла, в които са добавени 3 реда и са изтрити 0 реда
  1. 3 0
      src/map/unit.cpp

+ 3 - 0
src/map/unit.cpp

@@ -1328,6 +1328,9 @@ int unit_warp(struct block_list *bl,short m,short x,short y,clr_type type)
 	clif_spawn(bl);
 	skill_unit_move(bl,gettick(),1);
 
+	if (!battle_config.slave_stick_with_master && bl->type == BL_MOB && mob_countslave(bl) > 0)
+		mob_warpslave(bl,MOB_SLAVEDISTANCE);
+
 	return 0;
 }