فهرست منبع

Fixed Looters on monster_loot_search_type=0 (#9167)

- Looters will now fully benefit from the previous fixes even if monster_loot_search_type is set to 0
  * That means looters will stop moving smoothly
- Follow-up to 78a2bab
- Related to #8232
Playtester 2 ماه پیش
والد
کامیت
90b5d337ee
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/map/mob.cpp

+ 2 - 2
src/map/mob.cpp

@@ -1405,8 +1405,8 @@ static int32 mob_ai_sub_hard_lootsearch(struct block_list *bl,va_list ap)
 		md->target_id = bl->id;
 	}
 	else if( !battle_config.monster_loot_search_type ){
-		// Stop walking immediately if item is no longer on the ground.
-		unit_stop_walking( &md->bl, USW_FIXPOS );
+		// Stop walking after 0.5-1.5 cells if item is no longer on the ground.
+		unit_stop_walking_soon(md->bl, gettick());
 	}
 
 	return 0;