Skip to content

Commit

Permalink
Fixed #2919, since max stat is 130 for 3rd job, added str limit so th…
Browse files Browse the repository at this point in the history
…at the reduction won't exceed the max duration of the skill.
  • Loading branch information
MrKeiKun committed Apr 30, 2021
1 parent 2624a2c commit f9b2b58
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/map/skill.c
Original file line number Diff line number Diff line change
Expand Up @@ -13944,7 +13944,11 @@ static int skill_unit_onplace_timer(struct skill_unit *src, struct block_list *b
} else {
struct status_data *bst = status->get_base_status(bl);
nullpo_ret(bst);
sg->limit -= 1000 * bst->str/20;

int basestr = bst->str;
if (basestr > 130)
basestr = 130;
sg->limit -= 1000 * basestr / 20;
sc_start(ss, bl, SC_VACUUM_EXTREME, 100, sg->skill_lv, sg->limit);

if ( !map_flag_gvg(bl->m) && !map->list[bl->m].flag.battleground && !is_boss(bl) ) {
Expand Down

0 comments on commit f9b2b58

Please sign in to comment.