Fixes Lif - Brain Surgery SP bonus (#7257)

* Fixes #7221.
* Corrects the SP bonus of Lif's Brain Surgery to be skill_lv%.
Thanks to @Daraen1!
This commit is contained in:
Aleos 2022-09-09 12:11:19 -04:00 committed by GitHub
parent a53d8604c9
commit a38b65da49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4798,7 +4798,7 @@ int status_calc_homunculus_(struct homun_data *hd, uint8 opt)
status->max_hp += skill_lv * 2 * status->max_hp / 100; status->max_hp += skill_lv * 2 * status->max_hp / 100;
if((skill_lv = hom_checkskill(hd, HLIF_BRAIN)) > 0) if((skill_lv = hom_checkskill(hd, HLIF_BRAIN)) > 0)
status->max_sp += (1 + skill_lv / 2 - skill_lv / 4 + skill_lv / 5) * status->max_sp / 100; status->max_sp += skill_lv * status->max_sp / 100;
if (opt&SCO_FIRST) { if (opt&SCO_FIRST) {
hd->battle_status.hp = hom->hp; hd->battle_status.hp = hom->hp;