Skip to content

Commit

Permalink
Merge pull request #3266 from csnv/feature/combo-cache-skill
Browse files Browse the repository at this point in the history
Fix combo_cache_skill checking current skill delay instead of last one
  • Loading branch information
MishimaHaruna authored Dec 30, 2023
2 parents 1e0f91f + 8d7737e commit be9baf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/map/clif.c
Original file line number Diff line number Diff line change
Expand Up @@ -13568,13 +13568,13 @@ static void clif_useSkillToIdReal(int fd, struct map_session_data *sd, int skill
if (skill_id != SA_CASTCANCEL && skill_id != SO_SPELLFIST && sd->auto_cast_current.type == AUTOCAST_NONE)
return;
} else if (DIFF_TICK(tick, sd->ud.canact_tick) < 0) {
// Cannot perform skill yet, delay execution until canact_tick allows it
// Only for combo skills with implicit delays, otherwise we create a speedhack that bypasses client's animation delay
// Delay execution of combo skill until canact_tick allows it
// Only for combo skills whose prerequisite induced delay
if (battle_config.combo_cache_skill
&& !skip_combo_check
&& sd->sc.data[SC_COMBOATTACK] != NULL
&& skill->is_combo(skill_id)
&& skill->get_delaynodex(skill_id, skill_lv) != 0
&& skill->delay_fix(&sd->bl, sd->sc.data[SC_COMBOATTACK]->val1, pc->checkskill(sd, sd->sc.data[SC_COMBOATTACK]->val1)) > 0
) {
timer->add(sd->ud.canact_tick, clif->combo_delay_timer, sd->bl.id, (intptr_t)MakeDWord((uint16)skill_id, (uint16)skill_lv));
return;
Expand Down

0 comments on commit be9baf5

Please sign in to comment.