if (hit <= 0) { hit = 3; if (bullet_pattern_dialogue_state == 0) { bullet_pattern_dialogue_state = 1; talkcon = 10; event_user(10); } with (other.owner) do_hitstop(2); scr_make_ripple(x, y, 8, 16777215, 50, 15, 20, depth - 1, undefined, undefined, undefined, 0, undefined, undefined, 2, false); with (other) instance_destroy(); if (lefthp > 0) left_lens_opacity = 1; if (righthp > 0) right_lens_opacity = 1; lefthp = max(0, lefthp - 1); righthp = max(0, righthp - 1); spawn_hit_petals(8, point_direction(other.x, other.y, x, y), 1); if (con == 0) animate(anim_dragdown); var hp_thereshold_reached = false; if (remaining_combo > 0) { remaining_combo = 0; hp_thereshold_reached = false; snd_play(snd_metalhit, 1, 2 - (remaining_combo / remaining_combo_max)); if (remaining_combo == 0) { hp_thereshold_reached = true; hp = floor(hp / 20) * 20; lefthp = floor(0.5 * hp); righthp = floor(0.5 * hp); snd_play(snd_ultraswing); snd_play(snd_glassbreak); snd_play(snd_punchheavythunder, 0.6, 1.3); scr_plat_cool_zoom(); } } hp = lefthp + righthp; if (hp_thereshold_reached && bullet_pattern_endstate == 0 && i_ex(obj_dw_cliff_seth_miniboss)) { conreturntimer = 999; if (lefthp > 29) lefthp = 29; if (righthp > 29) righthp = 29; if (hp <= 40 && eligible_for_standing_ending) { bullet_pattern_endstate = 1; bullet_pattern_can_expire = false; with (obj_dw_cliff_seth_miniboss) do_standing_combo_ending(other); } else { hp = lefthp + righthp; snd_stop(snd_glassbreak); snd_play(snd_glassbreak); animate(anim_recover); } } if (hp <= 0) { audio_stop_sound(snd_enemy_defeat_quick); snd_play(snd_enemy_defeat_quick); scr_shakeobj(); con = 99; timer = 0; current_animation = -4; } }