Skip to content

Commit b27a359

Browse files
committed
Fix snap_dodge setting not working for MO_EXTREMITYFIST
Issue #638
1 parent b097666 commit b27a359

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/map/battle.c

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,10 @@ static int battle_delay_damage_sub(int tid, int64 tick, int id, intptr_t data)
269269
if (target != NULL && !status->isdead(target)) {
270270
//Check to see if you haven't teleported. [Skotlex]
271271
if (src != NULL && (
272-
battle_config.fix_warp_hit_delay_abuse ?
273-
(dat->skill_id == MO_EXTREMITYFIST || target->m != src->m || check_distance_bl(src, target, dat->distance))
274-
:
275-
((target->type != BL_PC || BL_UCAST(BL_PC, target)->invincible_timer == INVALID_TIMER)
276-
&& (dat->skill_id == MO_EXTREMITYFIST || (target->m == src->m && check_distance_bl(src, target, dat->distance))))
272+
(dat->skill_id == MO_EXTREMITYFIST && (target->m != src->m || !battle_config.snap_dodge)) // Extremity fist always hits
273+
|| (battle_config.fix_warp_hit_delay_abuse && target->m != src->m)
274+
|| ((target->type != BL_PC || BL_UCAST(BL_PC, target)->invincible_timer == INVALID_TIMER)
275+
&& (target->m == src->m && check_distance_bl(src, target, dat->distance)))
277276
)) {
278277
map->freeblock_lock();
279278
status_fix_damage(src, target, dat->damage, dat->delay);

0 commit comments

Comments
 (0)