Browse Source

Fixed reloadmobdb status calculation (#3784)

Fixes #3783

Thanks to @Everade
Lemongrass3110 6 years ago
parent
commit
8e58f2ce24
1 changed files with 3 additions and 0 deletions
  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
 	// Relink the mob to the new database entry
 	md->db = mob_db(md->mob_id);
 	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 the view data was not overwritten manually
 	if( !md->vd_changed ){
 	if( !md->vd_changed ){
 		// Get the new view data from the mob database
 		// Get the new view data from the mob database