with (other) { if (!hit_check(other.id)) exit; } hit = 1; with (other) do_hbx_hit(-4, -1, 1.5 - ((0.5 * other.hp) / other.__max_hp)); spawn_hit_petals(8, point_direction(other.x, other.y, x, y), 1); if (!regular_enemy) { hp = ceil(hp / 3); hp -= 1; hp *= 3; instance_destroy(); } else { flash_hurt(16711935); hp -= 3; evadedirection = sign(x - other.x); if (hp <= 0) instance_destroy(); else stun(); }