Fix bonuses for SJ_STARSTANCE and SJ_LUNARSTANCE (#4884)

* Fix Max HP bonus for SJ_LUNARSTANCE

* Fix missing ASPD bonus in renewal for SJ_STARSTANCE
This commit is contained in:
Eric Liu
2020-05-05 02:20:11 +10:00
committed by GitHub
parent ea59d80490
commit 24ea092dd2

View File

@@ -3398,7 +3398,7 @@ static int status_get_hpbonus(struct block_list *bl, enum e_status_bonus type) {
bonus += 30;
#endif
if(sc->data[SC_LUNARSTANCE])
bonus += bonus * sc->data[SC_LUNARSTANCE]->val2 / 100;
bonus += sc->data[SC_LUNARSTANCE]->val2;
//Decreasing
if(sc->data[SC_VENOMBLEED])
@@ -7547,6 +7547,8 @@ static short status_calc_aspd(struct block_list *bl, struct status_change *sc, b
bonus += sc->data[SC_INCREASEAGI]->val1;
if (sc->data[SC_NIBELUNGEN] && sc->data[SC_NIBELUNGEN]->val2 == RINGNBL_ASPDRATE)
bonus += 20;
if (sc->data[SC_STARSTANCE])
bonus += sc->data[SC_STARSTANCE]->val2;
struct map_session_data* sd = BL_CAST(BL_PC, bl);
uint8 skill_lv;