From b42dbe4a9f3e69d0b992b5ad990cb3d0da42d8c7 Mon Sep 17 00:00:00 2001 From: Lemongrass3110 Date: Fri, 22 Apr 2022 15:42:00 +0200 Subject: [PATCH] Fixed RES/MRES for players (#6857) * Fixes #6841. Co-authored-by: Playtester --- src/map/status.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/status.cpp b/src/map/status.cpp index 18275b5d1a..7e514328f5 100644 --- a/src/map/status.cpp +++ b/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) {