Skip to content

Commit

Permalink
Fixed combo_delay_rate behavior
Browse files Browse the repository at this point in the history
Removed from affecting all SC_COMBOATTACK inducing skills
Additionally, send the same time to client
  • Loading branch information
csnv committed Dec 29, 2023
1 parent 119b859 commit ce874bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/map/skill.c
Original file line number Diff line number Diff line change
Expand Up @@ -3464,7 +3464,7 @@ static int skill_attack(int attack_type, struct block_list *src, struct block_li
break;
} //Switch End
if (combo) { //Possible to chain
combo = (int)max(status_get_amotion(src), DIFF_TICK(sd->ud.canact_tick, tick));
combo = (int)max(status_get_amotion(src), DIFF_TICK(sd->ud.canact_tick, tick)) + 300 * battle_config.combo_delay_rate / 100;
sc_start2(NULL, src, SC_COMBOATTACK, 100, skill_id, 0, combo, skill_id);
clif->combo_delay(src, combo);
}
Expand Down
5 changes: 2 additions & 3 deletions src/map/status.c
Original file line number Diff line number Diff line change
Expand Up @@ -8066,9 +8066,8 @@ static int status_change_start_sub(struct block_list *src, struct block_list *bl
//val4: TK: Combo time
struct unit_data *ud = unit->bl2ud(bl);
if( ud && (!val3 || val3 == 2) ) {
total_tick += 300 * battle_config.combo_delay_rate/100;
ud->attackabletime = timer->gettick()+total_tick;
if( !val3 )
ud->attackabletime = timer->gettick() + total_tick;
if (!val3)
unit->set_walkdelay(bl, timer->gettick(), total_tick, 1);
}
val3 = 0;
Expand Down

0 comments on commit ce874bf

Please sign in to comment.