* Corrected script for some item #10 * add some items JRO costume Thanks to @Atemo
This commit is contained in:
@@ -10120,6 +10120,8 @@ int pc_itemheal(struct map_session_data *sd, t_itemid itemid, int hp, int sp)
|
||||
else if (itemid == ITEMID_COOKIE_BAT)
|
||||
bonus += sd->sc.data[SC_MTF_PUMPKIN]->val2;
|
||||
}
|
||||
if (sd->sc.data[SC_VITALIZE_POTION])
|
||||
bonus += bonus * 10 / 100;
|
||||
|
||||
tmp = hp * bonus / 100; // Overflow check
|
||||
if (bonus != 100 && tmp > hp)
|
||||
|
||||
Reference in New Issue
Block a user