浏览代码

Fixed reloadmobdb status calculation (#3784)

Fixes #3783

Thanks to @Everade
Lemongrass3110 6 年之前
父节点
当前提交
8e58f2ce24
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/map/mob.cpp

+ 3 - 0
src/map/mob.cpp

@@ -5352,6 +5352,9 @@ static int mob_reload_sub( struct mob_data *md, va_list args ){
 	// Relink the mob to the new database entry
 	md->db = mob_db(md->mob_id);
 
+	// Recalculate the monster status based on the new data
+	status_calc_mob(md, SCO_NONE);
+
 	// If the view data was not overwritten manually
 	if( !md->vd_changed ){
 		// Get the new view data from the mob database