Adjusts Assassin Cross of Sunset ASPD bonus (#5813)

* Fixes #5738.
* The ASPD increase of Assassin Cross of Sunset should apply to all weapon types in renewal.
Thanks to @Balferian!
This commit is contained in:
Aleos 2021-03-31 15:33:09 -04:00 committed by GitHub
parent 1f8e600c16
commit f623df55a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7508,6 +7508,9 @@ static short status_calc_aspd(struct block_list *bl, struct status_change *sc, b
} }
if (sc->data[SC_ASSNCROS] && bonus < sc->data[SC_ASSNCROS]->val2) { if (sc->data[SC_ASSNCROS] && bonus < sc->data[SC_ASSNCROS]->val2) {
#ifdef RENEWAL
bonus += sc->data[SC_ASSNCROS]->val2;
#else
if (bl->type != BL_PC) if (bl->type != BL_PC)
bonus += sc->data[SC_ASSNCROS]->val2; bonus += sc->data[SC_ASSNCROS]->val2;
else { else {
@ -7524,6 +7527,7 @@ static short status_calc_aspd(struct block_list *bl, struct status_change *sc, b
break; break;
} }
} }
#endif
} }
if (bonus < 20 && sc->data[SC_MADNESSCANCEL]) if (bonus < 20 && sc->data[SC_MADNESSCANCEL])