Selaa lähdekoodia

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

Daegaladh 4 vuotta sitten
vanhempi
commit
005a2c4f48
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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;
 }