Fixed RES/MRES for players (#6857)

* Fixes #6841.
Co-authored-by: Playtester <Kenji.lto@gmx.de>
This commit is contained in:
Lemongrass3110 2022-04-22 15:42:00 +02:00 committed by GitHub
parent 53bc2376a6
commit b42dbe4a9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {