Kaynağa Gözat

Fixed RES/MRES for players (#6857)

* Fixes #6841.
Co-authored-by: Playtester <Kenji.lto@gmx.de>
Lemongrass3110 3 yıl önce
ebeveyn
işleme
b42dbe4a9f
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      src/map/status.cpp

+ 2 - 1
src/map/status.cpp

@@ -1996,7 +1996,7 @@ void status_calc_misc(struct block_list *bl, struct status_data *status, int lev
 	int stat;
 
 	// Non players get the value set, players need to stack with previous bonuses.
-	if( bl->type != BL_PC )
+	if( bl->type != BL_PC ){
 		status->batk =
 		status->hit = status->flee =
 		status->def2 = status->mdef2 =
@@ -2006,6 +2006,7 @@ void status_calc_misc(struct block_list *bl, struct status_data *status, int lev
 		
 		if (bl->type != BL_MOB)	// BL_MOB has values set when loading mob_db
 			status->res = status->mres = 0;
+	}
 
 #ifdef RENEWAL // Renewal formulas
 	if (bl->type == BL_HOM) {