Skip to content

Commit

Permalink
Merge pull request #3241 from csnv/fix/snap_dodge_638
Browse files Browse the repository at this point in the history
Fix snap_dodge setting not working for MO_EXTREMITYFIST
  • Loading branch information
MishimaHaruna authored Dec 26, 2023
2 parents 2762a8a + b27a359 commit 9aef99e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/map/battle.c
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,10 @@ static int battle_delay_damage_sub(int tid, int64 tick, int id, intptr_t data)
if (target != NULL && !status->isdead(target)) {
//Check to see if you haven't teleported. [Skotlex]
if (src != NULL && (
battle_config.fix_warp_hit_delay_abuse ?
(dat->skill_id == MO_EXTREMITYFIST || target->m != src->m || check_distance_bl(src, target, dat->distance))
:
((target->type != BL_PC || BL_UCAST(BL_PC, target)->invincible_timer == INVALID_TIMER)
&& (dat->skill_id == MO_EXTREMITYFIST || (target->m == src->m && check_distance_bl(src, target, dat->distance))))
(dat->skill_id == MO_EXTREMITYFIST && (target->m != src->m || !battle_config.snap_dodge)) // Extremity fist always hits
|| (battle_config.fix_warp_hit_delay_abuse && target->m != src->m)
|| ((target->type != BL_PC || BL_UCAST(BL_PC, target)->invincible_timer == INVALID_TIMER)
&& (target->m == src->m && check_distance_bl(src, target, dat->distance)))
)) {
map->freeblock_lock();
status_fix_damage(src, target, dat->damage, dat->delay);
Expand Down

0 comments on commit 9aef99e

Please sign in to comment.