Heat Barrel should be giving fixed ASPD (#4867)

* Heat Barrel's ASPD bonus should be a fixed amount, not at a rate.
Thanks to @LordWhiplash!
This commit is contained in:
Aleos 2020-05-04 10:20:25 -04:00 committed by GitHub
parent 9794aa2b80
commit 9309986a86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7478,8 +7478,6 @@ static short status_calc_aspd(struct block_list *bl, struct status_change *sc, b
bonus += sc->data[sc_val]->val1;
if (sc->data[SC_ATTHASTE_CASH])
bonus += sc->data[SC_ATTHASTE_CASH]->val1;
if (sc->data[SC_HEAT_BARREL])
bonus += sc->data[SC_HEAT_BARREL]->val1;
} else {
if (sc->data[SC_DONTFORGETME])
bonus -= sc->data[SC_DONTFORGETME]->val2 / 10;
@ -7587,6 +7585,8 @@ static short status_calc_fix_aspd(struct block_list *bl, struct status_change *s
aspd -= sc->data[SC_MTF_ASPD2]->val1;
if (sc->data[SC_SOULSHADOW])
aspd -= 10 * sc->data[SC_SOULSHADOW]->val2;
if (sc->data[SC_HEAT_BARREL])
aspd -= sc->data[SC_HEAT_BARREL]->val1 * 10;
return cap_value(aspd, 0, 2000); // Will be recap for proper bl anyway
}